what is virtual function?
Answer Posted / manav sharma
It allows one to write generalized code that works with the
base class pointer which can dynamically point to the
derieved class objects. Virtual function allows you to
implement runtime polymorphism. It allows the function call
to be binded with function definition as late as runtime.
Also read: concept of VPTR and VTABLE from Thinking in C++
| Is This Answer Correct ? | 56 Yes | 8 No |
Post New Answer View All Answers
What is the difference between a mixin and inheritance?
What is methods in oop?
What is the purpose of enum?
Can we define a class within the interface?
How to use CMutex, CSemaphore in VC++ MFC
What is coupling in oop?
How oops is better than procedural?
Why is abstraction used?
What is ambiguity in inheritance?
explain sub-type and sub class? atleast u have differ it into 4 points?
How many human genes are polymorphic?
What is destructor in oop?
What is difference between inheritance and polymorphism?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Is this job good for future? can do this job post grduate student?