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

Post New Answer

More OOPS Interview Questions

Plese get me a perfect C++ program for railway/airway reservation with all details.

0 Answers   ITM,


Write A Program using Single and Multiple Inheritance.

1 Answers  


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

0 Answers  


What is static in oop?

0 Answers  


i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,






what is the sylabus for priliminaries?

0 Answers  


What is virtual constructors/destructors?

4 Answers   IBS,


when my application exe is running nad i don't want to create another exe what should i do

2 Answers   HCL,


What is function overloading and operator overloading?

4 Answers  


Write a program to find out the number of palindromes in a sentence.

1 Answers   TCS,


what is the use of template classes in c++

1 Answers  


what does exactly the linker do?

1 Answers  


Categories