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

Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3815


What is multilevel inheritance?

716


How do you achieve polymorphism?

606


Whats is abstraction in oops?

585


What is overloading in oops?

591






What is static modifier?

626


What is a superclass in oop?

663


What is abstraction example?

612


Templates mean

1583


What do you mean by Encapsulation?

635


What is balance factor?

576


Why do we use polymorphism?

570


class type to basic type conversion

1833


What is the real time example of encapsulation?

587


What are the 3 pillars of oop?

607