Question: Using Java: Ch 3 & 4 Assignment Due: Have uploaded by midnight Feb. 26 Create a Date class with integer data members for year, month
Using Java:

Ch 3 & 4 Assignment Due: Have uploaded by midnight Feb. 26 Create a Date class with integer data members for year, month and day. Also include a string data member for the name of the month. Include the following methods: 1. Returns the date in the format: January 1, 2021 2. Returns the date in the format: 1/1/2021 3. Allows the user to change a date. 4. Include at least 2 constructors for the purpose of instantiating objects of this class. One constructor could be used for initializing all 4 private data members, for example. 5. Include an accessor of your choice for one of the data members. 6. Include a mutator of your choice for one of the data members. In your main method: 1. Instantiate 2 objects of the Date class. 2. Use each of the methods defined in the class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
