Implement a base Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurrs on that date. For example, for a monthly appointment, you must check whether the day of the month matches.
1
Expert's answer
2014-03-17T13:49:16-0400
Dear customer, Unfortunately, your question requires a lot of work and cannot be done for free. Please submit it with all requirements as an assignment to our control panel and we'll assist you.
Comments
Leave a comment