what is virtual function?
Answer Posted / gomathisivaram
The virtual function is nothing but the function in the
base class with the virtual keyword, that allows us to
derive only once in the class which is going to accsess it
while it is the child of two different classes which are
the child of the same base class.This is nothing but the
dynamic binding.
| Is This Answer Correct ? | 18 Yes | 10 No |
Post New Answer View All Answers
What is a class in oop?
What does I oop mean?
How long to learn object oriented programming?
What are the benefits of polymorphism?
How to use CMutex, CSemaphore in VC++ MFC
Please send ford technologies placement paper 2 my mail id
Why is destructor used?
What is the difference between inheritance and polymorphism?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is overriding in oops?
how to get the oracle certification? send me the answer
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 does oop mean in snapchat?
Is html an oop?
What are the advantages of polymorphism?