Create a Date class with integer data members for year, month, and day. Also include a string
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. 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. Include appropriate constructors, properties, and methods. Override the ToString ( ) method to display the date formatted with slashes (/) separating the month, day, and year.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285096261
4th Edition
Authors: Barbara Doyle
Question Posted: