Question: Task# 1 Background: Create a class called Date that includes three pieces of information as instance variables 1. Month (type int) 2. Day (type int)

 Task# 1 Background: Create a class called Date that includes three

Task# 1 Background: Create a class called Date that includes three pieces of information as instance variables 1. Month (type int) 2. Day (type int) 3. Year (type int) Your class should have a constructor that initializes the three instance variables and assumes that the values provided are correct. Provide a set and a get method for each instance variable. Provide a method display Date that displays the month day and year separated by forward slashes (1) Write a test application named Date Test that demonstrates class Date's capabilities. Your output should appear as follows: The initial date is: 7/4/2004 Date with new values is: 11/1/2003 MISMUL

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!