Question: Exercise: ( Date.java) Create a class named Date. The class data fields (attributes): int: month int: day int: year The class methods: Public setter &
Exercise:
(Date.java) Create a class named Date.
The class data fields (attributes):
int: month
int: day
int: year
The class methods:
Public setter & getter methods.
CreateDate()that accepts a date with integer values for day, month and year.
A printDate() method that prints the specified month, day and year.
(TestDate.java) Create a class named TestDate.
Create two objects from Date Class, for example date1 & date2.
Assign values for each date object and use class methods to print object details. (Date.java) Create a class named Date.
Step by Step Solution
There are 3 Steps involved in it
To help you create a Date class with the specified requirements Ill walk through each step of the task and provide a detailed solution Heres how the D... View full answer
Get step-by-step solutions from verified subject matter experts
