Answer Posted / muthuveera
Its allows the Constant function in member variable
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is encapsulation in oop?
What are the advantages of polymorphism?
What is abstract class in oop?
What is encapsulation with example?
What polymorphism means?
Why do we use oops?
Are polymorphisms mutations?
which feature are not hold visual basic of oop?
What is the point of polymorphism?
Why is polymorphism needed?
What is oops concept with example?
What is polymorphism and its types?
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.
What is the difference between inheritance and polymorphism?