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
which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean
What is abstraction in oop?
difference between overloading and overridding
What is the default size allocated for array in the statement if size not specified " int a[] "
What are the two different types of polymorphism?
define oops concept with example
What is Agile methodology?
20 Answers ABC, Accenture, College School Exams Tests, Inmar, Microsoft, Sapient,
what is overloading
What is purpose of inheritance?
Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.
Which is the only operator in C++ which can be overloaded but NOT inherited?
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