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
What is a down cast?
What are separators in c++?
Explain the different access specifiers for the class member in c++.
Why is polymorphism useful?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
Can I learn c++ as my first language?
What is an inclusion guard?
What are static and dynamic type checking?
What is function declaration in c++ with example?
Explain about Garbage Collector?
Specify different types of decision control statements?
What happens when the extern "c" char func (char*,waste) executes?
What is scope operator in c++?
Which sort does c++ use?
Are strings mutable in c++?