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 difference between class and object with example?
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??????
what is the realstic modeling?
different types of castings
Can you inherit a private class?
what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....
what is the application of oops?
In multilevel inheritance constructors will be executed from the .... class to ... class
What are callback functions in c++
What does it mean when someone says I oop?
What is meant by oops concept?
What does no cap mean?