when can we use virtual destructor?

Answer Posted / yaggu

Basically, the characteristics it self defines, that
constructor can not be virtual but overloaded while in the
inverse to this, the destructor can not be
overloaded....means there may be more than one constructors
in class and when you create the object of the class,
constructor invokes and when you do not need at the same
time though you define more than one constructors but with
only one destructor we can destroy the object.....that is why...

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to show polymorphism in C++?

626


What is the difference between global variables and static varables?

567


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

1855


Is c++ a software?

724


Is arr and &arr are same expression for an array?

580






What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

651


Explain virtual class?

584


When is dynamic checking necessary?

597


What is the main purpose of c++?

541


What is a stack? How it can be implemented?

694


How much is c++ certification?

585


What is the difference between structure and class?

554


What is the best c++ compiler for windows 10?

578


Distinguish between a # include and #define.

645


What are the vectors in c++?

579