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 a class in oop?
Why is object oriented programming so hard?
What is protected in oop?
#include
How to use CMutex, CSemaphore in VC++ MFC
What is polymorphism explain?
What is byval and byref? What are differences between them?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is abstraction example?
Advantage and disadvantage of routing in telecom sector
Why do we use class?
What is difference between data abstraction and encapsulation?
Is html an oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What do you mean by overloading?