Write a class that stores a Date and does date validations and manipulations as described below. Properties
Year- Integer (4 digit year eg. 1978) Month- Integer (Numerical Month eg. 02- February) Day- Integer (Day of Month) DateCode- A numerical representation of the date. Assume that the DateCode is calculated as given below. DateCode= Year * 365 + Month * 30 + Day
Comments
Leave a comment