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...

What is a virtual destructor?

Answer Posted / nakul kumar

The simple answer is that a virtual destructor is one that is declared with the virtual attribute.

The behavior of a virtual destructor is what is important. If you destroy an object through a baller or reference to a base class, and the base-class destructor is not virtual, the derived-class destructors are not executed, and the destruction might not be complete.

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 pair in c++?

1124


Explain unexpected() function?

1162


Should the this pointer can be used in the constructor?

1074


What are advantages of using friend classes?

1128


What are the uses of static class data?

1236


What is abstract keyword in c++?

1117


which operator is used for performing an exponential operation a) > b) ^ c) none

1110


Where and why do I have to put the "template" and "typename" keywords?

1097


You run a shell on unix system. How would you tell which shell are you running?

1216


How to declaring variables in c++?

1207


Explain what is class definition in c++ ?

1196


How to declare a pointer to an array of integers?

1185


What is the difference between new() and malloc()?

2222


How to declare a function pointer?

1044


What is polymorphism & list its types in c++?

1117