Question: Create a class called DateTime , as shown in Figure 1 , and within this class, you need to define the following: A . Five

Create a class called DateTime, as shown in Figure 1, and within this class, you need to define the following:
A. Five private data members that represent the time stamp, including the date
(i.e. year, month, day, hour, and minute).
B. Two constructors: the default constructor and the other, will be used to set the
five data members.
C. A SetDate method to set the date members only.
D. A SetTime method to set the time members only.
E. A Show method prints the date and time information on the screen.
F. Test your class by creating an object of it in the main function.
 Create a class called DateTime, as shown in Figure 1, and

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!