Question:
Implement a base class 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 occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of
Appointment* with a mixture of appointments. Have the user enter a date and print out
all appointments that happen on that date.
No Answer is Posted For this Question
Be the First to Post Answer
Program to check whether a word is in all capital letters
143.what is oops principles?
What is pointer in oop?
Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3
3 Answers Accenture, Cognizant, IBM,
if u write a class do u write Assignment operator and copy constructor
What are two types of polymorphism?
what is the difference between class and object?
namespace is working on which compiler?
What do you mean by stack program? Get me an example stack program?
What is difference between function overloading and overriding?
What is the difference between class and structure?
What is for loop and its syntax?