Question: 1 . 5 . 4 . Create a class of dates. This class should be called Date and each object in this class represents a
Create a class of dates. This class should be called Date and each object in this class represents a date such as January Include the following methods in the class.a A method read in that reads the date from input stream inDates are typed as m dy where md and y are integers. The stream argument has cin as a default value. No errorchecking is performed.b A method print out that prints the date to output stream out.Dates are printed in numerical format, as in The stream argument has cout as a default value.c Amethod printinwords out that also prints the date to output stream ouf but with the month in words, as in January The stream argument has cout as a default value.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
