Question: ( Constructors and Destructors ) What happens when a return type, even void, is specified for a constructor or destructor? 1 0 . 6 (

(Constructors and Destructors) What happens when a return type, even void, is specified
for a constructor or destructor?
10.6(Date Class Modification) Modify class Date in Fig. 10.8 to have the following capabilities:
a) Output the date in multiple formats such as
DDD YYYY
MM/DD/YY
June 14,1992
b) Use overloaded constructors to create Date objects initialized with dates of the formats
in part (a).
c) Create a Date constructor that reads the system date using the standard library functions
of the header and sets the Date members. (See your compilers reference docu-
mentation or www.cplusplus.com/ref/ctime/index.html for information on the func-
tions in header .)
In Chapter 11, well be able to create operators for testing the equality of two dates and for com-
paring dates to determine whether one date is prior to, or after, another.

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!