Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following UML diagram modelling an application that allows three types of registration for a conference. Registration, StudentRegistration and GuestRegistration represent standard, student and
Consider the following UML diagram modelling an application that allows three types of registration for a conference. Registration, StudentRegistration and GuestRegistration represent standard, student and guest registrations respectively.
Explain the relationship between Person and Registration.
Write the definition no implementation of Registration. No preprocessor directives are required.
Write lines of code to create an instance of Registration.
Write the first line of the class definition classHead of StudentRegistration.
The cost of a student conference registration is half of what is returned by calculateFee in Registration. Implement the function calculateFee in StudentRegistration.
Explain the relationship between Registration and RegistrationList.
Write the first line of the class definition classHead of RegistrationList.
The function addRegistration takes a Registration as the input parametr. List all possible types of objects that can be added to a RegistrationList object.
Implement the function calculateTotalFee in RegistrationList, so that it adds and returns the total cost of all registrations in a RegistrationList object.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started