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

What is difference between class and object with example?

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 realstic modeling?

1 Answers  


different types of castings

3 Answers   Siemens,


Can you inherit a private class?

0 Answers  






what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....

6 Answers  


what is the application of oops?

8 Answers   IBM,


In multilevel inheritance constructors will be executed from the .... class to ... class

2 Answers   ABCO, TCS,


What are callback functions in c++

1 Answers   SoftTech,


What does it mean when someone says I oop?

0 Answers  


What is meant by oops concept?

0 Answers  


What does no cap mean?

0 Answers  


Categories