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
What is design patterns in C++?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
what type of questions
what is static?
What is class and object in oops?
design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
what is the size of an empty class
What is solid in oops?
Why a "operator=(...)" when there is a copy ctor?
What is encapsulation example?
What do you mean by pure virtual functions?