Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is array in c++ pdf?

1090


What are the c++ access specifiers?

1342


Difference between strdup and strcpy?

1138


What are the differences between malloc() and calloc()?

1108


Why is swift so fast?

1057


Explain storage qualifiers in c++.

1029


an integer constant must have atleast one a) character b) digit c) decimal point

980


What is name hiding in c++?

1107


Should I learn c++ c?

1000


Explain object slicing in c++?

1011


Is java based off c++?

934


What is the main purpose of c++?

1013


What are register variables?

1072


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

750


How we can differentiate between a pre and post increment operators during overloading?

1041