Why would you make a destructor virtual?
Answer Posted / sunny bogawat
we make destructure as virtual because when we derived a
class from base class then destructor called from derived
to base so for this happening correctly we haveto make base
class destructor as avirtual.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Briefly describe a B+ tree. What is bulk loading in it?
What is the meaning of string in c++?
What are 2 ways of exporting a function from a dll?
What is virtual table?
How do you clear a set in c++?
Explain function overloading and operator overloading.
What is a friend function in c++?
How is new() different from malloc()?
Write a program using display() function which takes two arguments.
Write a Program for find and replace a character in a string.
What is the best way to declare and define global variables?
What is a storage class used in c++?
What does new do in c++?
Write a program which uses functions like strcmp(), strcpy()? etc
Name the debugging methods that are used to solve problems?