Question: 1 . 5 . 4 . Create a class of dates. This class should be called Date and each object in this class represents a

1.5.4. Create a class of dates. This class should be called Date and each object in this class represents a date such as January 22,2019. Include the following methods in the class.a) A method read (in) that reads the date from input stream in.Dates are typed as m/ d/y where m,d and y are integers. The stream argument has cin as a default value. No error-checking is per-formed.b) A method print (out) that prints the date to output stream out.Dates are printed in numerical format, as in 1/22/2022. The stream argument has cout as a default value.c) Amethod print_in_words (out) that also prints the date to output stream ouf but with the month in words, as in January 22,2022. The stream argument has cout as a default value.
1 . 5 . 4 . Create a class of dates. This class

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 Programming Questions!