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 polymorphism means?
What is protected in oop?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What are the two different types of polymorphism?
What are the 4 main oop principles?
Which is not an object oriented programming language?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Write a program to sort the number with different sorts in one program ??
Can destructor be overloaded?
Why is there no multiple inheritance?
hi all..i want to know oops concepts clearly can any1 explain??
what is difference between class template and template class?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is a class in oop?
What is difference between oop and pop?