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 variable example?
What is abstraction in oop with example?
What is meant by oops concept?
Why do we use class in oops?
What are oops functions?
What is the benefit of oop?
Why multiple inheritance is not allowed?
can we make game by using c
What does no cap mean?
What is class and object in oops?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is polymorphism what are the different types of polymorphism?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
#include
Get me a number puzzle game-program