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


Please Help Members By Posting Answers For Below Questions

What is ambiguity in inheritance?

625


any one please tell me the purpose of operator overloading

1965


What is abstraction in oops?

584


What are the benefits of polymorphism?

620


What is multilevel inheritance?

723






Give two or more real cenario of virtual function and vertual object

1851


Whats is abstraction in oops?

589


Templates mean

1587


What is object-oriented programming? Webopedia definition

719


What is the difference between procedural programming and oops?

550


Why do pointers exist?

657


When not to use object oriented programming?

567


Why do we use polymorphism?

573


What is property in oops?

565


What is protected in oop?

602