Question: C++ Program Create the following classes: Date - dom (int) - month (int) - year (int) - default constructor - constructor of the form Date(int,

C++ Program

Create the following classes:

Date

- dom (int)

- month (int)

- year (int)

- default constructor

- constructor of the form Date(int, int, int)

Time

- hour (int)

- minute (int)

- second (int)

- default constructor

- constructor of the form Time(int, int, int)

Event

- description (string)

- date (Date)

- time (Time)

- constructor of the form Event(string, int, int, int, int, int, int)

- constructor of the form Event(string, Date, Time)

- use the class in main

- prompt the user for

- event name

- day, month, year

- hour, minute, second

- instantiate two Event objects and initialize with the data provided

- each instance should use a different constructor

- use overloaded << operator (implemented as a friend) to display all the

information for both objects

- ie. cout << event1 << endl;

cout << event2 << endl;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!