Answered You can hire a professional tutor to get the answer.

QUESTION

2 Write a class definition for Date, an object type that contains three integers,year, month and day. This class

Write a class definition for Date, an object type that contains three integers,year, month and day. This class

should provide two constructors. The first should take no parameters. The second should take parameters named year, month and day, and use them to initialize the instance variables.Write a main method that creates a new Date object named birthday. The new object should contain your birthdate. You can use either constructor

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question