what is the virtual function overhead, and what is it used
for ? i hope i can get and appropriate answers, thanks a lot....
Answer Posted / d n gavade
We use Virtual function as Dyanamic Polymorphism.
i.e run time we can passed referencr of derived class into
base class pointer and call the derived class method.Thi
sis its benefit.
But Virtual destructor is also needed when we use virtual
constructor other wise it will cause memory leaks.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the point of polymorphism?
What is encapsulation and abstraction? How are they implemented in C++?
What is the difference between a mixin and inheritance?
What is multilevel inheritance in oop?
What is for loop and its syntax?
What is the significance of classes in oop?
What does I oop mean?
What is encapsulation example?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is class in oop with example?
What is the real life example of polymorphism?
Whats oop mean?
Where is pseudocode used?
How does polymorphism work?
What are the two different types of polymorphism?