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 ambiguity in inheritance?
any one please tell me the purpose of operator overloading
What is abstraction in oops?
What are the benefits of polymorphism?
What is multilevel inheritance?
Give two or more real cenario of virtual function and vertual object
Whats is abstraction in oops?
Templates mean
What is object-oriented programming? Webopedia definition
What is the difference between procedural programming and oops?
Why do pointers exist?
When not to use object oriented programming?
Why do we use polymorphism?
What is property in oops?
What is protected in oop?