Question: Create a Date class with integer data members for year, month, and day. Also include a string data member for the name of the month.
Create a Date class with integer data members for year, month, and day. Also include a string data member for the name of the month. Include a method that returns the month name (as a string) as part of the date. Separate the day from the year with a comma in that method. iInclude appropriate constructors, properties, and methods. Override theToString() method to display the date formatted withslashes(/) separating the month, day, and year. Create a second class that instanatiates and test the Date class.
Okay so I need to do this but with a twist
I need to inlcude a tryparse method for month that allows for usser valdation and a loop that allows me reenter the date until the correct date is givin
and a switch stamtment for month name for the display as String.
Please help me with this I just need a full programm that makes sense
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
