Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Define a CalendarClock class having the following variables:
int minute (Range: 0-59)
int hour (Range: 0-23)
String dayOfWeek (possible values: “Sun”, ”Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”)
int day (Range: 1-31)
Int month (Range: 1-12)
int year (Range 1900-2100)
Write a constructor with 5 parameters
(min,hour,day,month,year) and initialize corresponding member variables
All variables must be private.
Write getter and setter methods for each variable
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900