Why and when is a virtual destructor needed?

Answer Posted / girish audichya

Virtual destroctor needed to delete the occupied space by
derived class using base class

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between pop and oop?

800


What is oops?what is its use in software engineering?

754


Is data hiding and abstraction same?

761


officer say me - i am offered to a smoking , then what can you say

1830


What is the example of polymorphism?

738


Whats oop mean?

786


What is the main feature of oop?

891


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2052


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1693


What is polymorphism what are the different types of polymorphism?

740


What is abstraction example?

823


What are the 5 oop principles?

831


How do you define a class in oop?

843


What are classes oop?

787


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

2198