English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

3 answers

Sounds like a homework assignment to me...good luck.

2007-02-27 00:46:26 · answer #1 · answered by whodeyflya 6 · 0 0

It looks like a homework assignment to me and I would suggest doing your own homework. I know it's frustrating, but it can be done, and YOU CAN do it!
My tip for solving the problem is take one step at a time. First just create a class with the instance variables. Compile it and see if it if ok, then proceed, and build up on it.
Breaking it down and doing it one step at a time will really help you. Don't try to create the whole program. Try making it one piece at a time.
Good luck!

2007-02-28 02:37:41 · answer #2 · answered by A.Samad Shaikh 2 · 0 0

I wouldn't know how to slove anything. Do you maybe mean solve?

Perhaps you should do your own homework anyways.

2007-02-27 09:06:26 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers