what is the difference between virtual function and
destoctor?



what is the difference between virtual function and destoctor?..

Answer / 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

More OOPS Interview Questions

what is the difference between containership and inheritence?

1 Answers  


what is the 3 types of system development life cycle

0 Answers  


Is react oop?

0 Answers  


What is encapsulation in simple terms?

0 Answers  


inheritence with example

1 Answers  






What is friend function?

12 Answers   Wipro,


Please send ford technologies placement paper 2 my mail id

0 Answers  


What does enum stand for?

0 Answers  


What is the purpose of enum?

0 Answers  


What is sub classing in c++?

1 Answers  


difference between structure and union.

2 Answers   ADP, Convergys,


How to improve object oriented design skills?

0 Answers  


Categories