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

Why c++ is the best language?

1050


Why is c++ a mid-level programming language?

1021


Is swift a good first language?

1031


How can I learn c++ easily?

1058


What is the most powerful coding language?

1038


What is private, public and protected inheritance?

1072


What is a sequence in c++?

992


How do you flush a buffer in c++?

1085


What are the uses of pointers?

1053


Explain abstraction.

1096


Can char be a number c++?

1033


Is it possible to write a c++ template to check for a function's existence?

1007


Out of fgets() and gets() which function is safe to use and why?

1174


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

1101


What is atoi in c++?

1059