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
Can an interface inherit a class?
What does I oop mean?
Write a program to sort the number with different sorts in one program ??
What is property in oops?
What are the data types in oop?
explain sub-type and sub class? atleast u have differ it into 4 points?
is there any choice in opting subjects like 4 out of 7
What is oops?what is its use in software engineering?
What is balance factor?
Why it is called runtime polymorphism?
What is object-oriented programming? Webopedia definition
What is a class in oop?
How to call a non virtual function in the derived class by using base class pointer
how to get the oracle certification? send me the answer
What are the 5 oop principles?