what is the difference between virtual function and
destoctor?
Answer Posted / prabhakar
virtual function is just like a member function of a class.it is used to over loading mechanisam.it can be acesses by any object of either base class or derived class.
destructor is used to dellocate the memory of an object.it can call by using delete operator.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
#include
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is the types of inheritance?
Can we have inheritance without polymorphism?
Why oops is important?
Can an interface inherit a class?
What is the real time example of encapsulation?
What is destructor example?
What is abstraction and encapsulation?
How to hide the base class functionality in Inheritance?
What is destructor give example?
What does sksksk mean in text slang?
What is encapsulation in oop?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is the renewal class?