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

which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean

2 Answers   HCL, Wipro,


What is abstraction in oop?

0 Answers  


difference between overloading and overridding

11 Answers  


What is the default size allocated for array in the statement if size not specified " int a[] "

4 Answers   CTS,


What are the two different types of polymorphism?

0 Answers  






define oops concept with example

1 Answers   Cap Gemini,


What is Agile methodology?

20 Answers   ABC, Accenture, College School Exams Tests, Inmar, Microsoft, Sapient,


what is overloading

3 Answers   MindCracker,


What is purpose of inheritance?

0 Answers  


Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.

13 Answers   Wipro,


Which is the only operator in C++ which can be overloaded but NOT inherited?

8 Answers  


Pls...could any one tell me that whether we can access the public data memeber of a class from another class with in the same program. Awaiting for your response Thanku

4 Answers  


Categories