Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS360 Lab Midterm Spring 2019 Question Implement the following class diagrams as follows. Note that you CANNOT use any classes in the Standard Template Libraries

image text in transcribed
CS360 Lab Midterm Spring 2019 Question Implement the following class diagrams as follows. Note that you CANNOT use any classes in the Standard Template Libraries uch as vector, map etc. All classes should implement the display) function from the abstract Displayable class, and the display method should display all the curent object's and its base class object's infomation. * The Party class should implement the getTicketS ales0 function from abstract Event class. The getTicketS ales) returms the sales of all party tickets sold. Decide what parameters needed for constructors without causing compiler errors and create objects property The people' property in Party class should be the array and created dynamically Use constant references and constant method to enhance classes' methods for efficiency and securty. Define a destructor if needed to release the allocated memory. Each class should have at least the data mebers listed in te class diagram Each class may have public access methods (setters and getters) for its data members if needed . Each class should have a default constructor . Define a copy constructor for the Party and CongraduationParty class so that the user can copy the object to another Displayable: abstract Event: abstract display0: vold eventDate: string Event App Even getTickeSales):double Person Party personNlame:String partyName: String #people : Person +Person- getPersonameO:String yTckePoe : double Paty) nd:int gpa: double BschoolName: String Student geGPAD: double getStadents:Person" get an amay of pointers to students who ane realy students getTotalStudentsO:in CS360 Lab Midterm Spring 2019 Question Implement the following class diagrams as follows. Note that you CANNOT use any classes in the Standard Template Libraries uch as vector, map etc. All classes should implement the display) function from the abstract Displayable class, and the display method should display all the curent object's and its base class object's infomation. * The Party class should implement the getTicketS ales0 function from abstract Event class. The getTicketS ales) returms the sales of all party tickets sold. Decide what parameters needed for constructors without causing compiler errors and create objects property The people' property in Party class should be the array and created dynamically Use constant references and constant method to enhance classes' methods for efficiency and securty. Define a destructor if needed to release the allocated memory. Each class should have at least the data mebers listed in te class diagram Each class may have public access methods (setters and getters) for its data members if needed . Each class should have a default constructor . Define a copy constructor for the Party and CongraduationParty class so that the user can copy the object to another Displayable: abstract Event: abstract display0: vold eventDate: string Event App Even getTickeSales):double Person Party personNlame:String partyName: String #people : Person +Person- getPersonameO:String yTckePoe : double Paty) nd:int gpa: double BschoolName: String Student geGPAD: double getStadents:Person" get an amay of pointers to students who ane realy students getTotalStudentsO:in

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions