Question: 1 ) Create a Date class. 1 a ) The class should have 3 properties ( instance variables ) : month day year 1 b
Create a Date class.
a The class should have properties instance variables:
month
day
year
b The class should have actions functions methods :
setDate allows the user to enter a date in format
showDate displays the date.
Create an instance of the Date class.
Test the object's setDate and showDate methods.
Submit your program code, including the test run at the bottom of your code.
Hint: Click on the Classes and OOP under Content for this week and refer to Example
Save and submit it as ppy
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
