Answer Posted / anumohan
when instance of that class is created by creating object
to the class
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
Is html an oop?
Which type does string inherit from?
What is the real life example of polymorphism?
What is a null tree?
What is stream in oop?
What are oops functions?
What is polymorphism programming?
What are oops methods?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is coupling in oops?
any one please tell me the purpose of operator overloading
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is encapsulation oop?
Plese get me a perfect C++ program for railway/airway reservation with all details.
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.