Create a class named Appointment that contains instance variables startTime, endTime, dayOfWeek (valid values are Monday through Friday), and a date which consists of a valid value of month, day and year. All times should be in military time (2400 hours), therefore use appropriate data type to represent the time. Create the appropriate accessor (getter) and mutator(setter) methods. Add two constructors to the Appointment class. Next, include a default constructor (no argument passed) and a constructor to initialize an Appointment to user supplied values.
2007-02-27
00:40:58
·
3 answers
·
asked by
Fish Guts
1
in
Computers & Internet
➔ Programming & Design