Design a class named Date that meets the following requirements: Three data fields year, month, and

Question:

Design a class named Date that meets the following requirements: 

■ Three data fields year, month, and day for representing a date
■ A constructor that constructs a date with the specified year, month, and day
■ Override the equals method
■ Override the hashCode method. (For reference, see the implementation of the Date class in the Java API.)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: