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

1159


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

1107


Can you sort a set c++?

991


write a porgram in c++ that reads an integer and print the biggest digit in the number

2256


Is c++ faster than c?

1025


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

1133


How java is different from c and c++?

1202


What are the various access specifiers in c++?

1034


What is the header file for setw?

1130


What is null pointer and void pointer?

1080


How can you say that a template is better than a base class?

1073


Which function cannot be overloaded c++?

1114


What are maps in c++?

967


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

1039


When one must use recursion function? Mention what happens when recursion functions are declared inline?

1192