Return the number of days in the month represented by thisSimpleDate. Return the
ID: 3613099 • Letter: R
Question
Return the number of days in the month represented by thisSimpleDate.
Return the day represented by this SimpleDate.
Return the month represented by this SimpleDate.
Return a short string representation of this SimpleDate object. Ashort string representation will have the format: MM/DD/YYYY. Forexample 3/15/2002 or 10/5/1987.
Return the year represented by this SimpleDate.
For this lab we assume February always has 28 days: there are noleap years.
Your class should support the following constructors:
Construct a new SimpleDate object with the day=1, month=1 andyear=initYear.
Construct a new SimpleDate object with the day=1, month=initMonthand year=initYear. If an invalid value is provided for the monthits value should default to 1.
Construct a new SimpleDate object with the day=initDay,month=initMonth and year=initYear. If invalid values are providedfor the day or the monththen both month and day should be set to1.
There is no default constructor. Write a driver class Driver.javawhich declares and uses SimpleDate objects in a way that tests thefunctionality of the class methods.