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
What is array in c++ pdf?
What are the c++ access specifiers?
Difference between strdup and strcpy?
What are the differences between malloc() and calloc()?
Why is swift so fast?
Explain storage qualifiers in c++.
an integer constant must have atleast one a) character b) digit c) decimal point
What is name hiding in c++?
Should I learn c++ c?
Explain object slicing in c++?
Is java based off c++?
What is the main purpose of c++?
What are register variables?
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
How we can differentiate between a pre and post increment operators during overloading?