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 / munendra 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 pointer 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 are the classes in c++?

1112


What are the differences between java and c++?

1082


What do you mean by volatile and mutable keywords used in c++?

989


What is the difference between #import and #include in c++?

1110


Is c++ a float?

1067


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

1021


Is c++ a high level language?

1007


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

1048


What is c++ 11 and c++ 14?

1056


Define friend function.

1050


What is constructor and destructor in c++?

1117


Which format specifier is used for printing a pointer value?

1064


What is the difference between structures and unions?

1064


What is the auto keyword good for in c++?

1191


What is the main purpose of c++?

1065