Add two constructors to the Appointment class created in question #9. Include a default constructor and a constructor to initialize an Appointment to suitable arguments.
What will be an ideal response?
```
/** Class constructors */
public Appointment()
{
startTime = 0;
endTime = 0;
dayOfWeek = "";
month = "";
day = 0;
year = 0;
}
public Appointment(int st, int et, String dow, String m, int d, int y)
{
setStartTime(st);
setEndTime(et);
setDayOfWeek(dow);
setMonth(m);
setDay(d);
setYear(y);
}
```
Computer Science & Information Technology
You might also like to view...
To select a wider range of color with the Magic Wand tool, you should _____
a. increase the Tolerance b. decrease the Tolerance c. check the Contiguous option d. uncheck the Contiguous option
Computer Science & Information Technology
The heapsort is ______ in the average case.
a) O(1) b) O(n) c) O(log n) d) O(n log n)
Computer Science & Information Technology