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 data abstraction? How is it different from data encapsulation?

1006


What does asterisk mean in c++?

1119


Why are arrays usually processed with for loop?

1237


Is linux written in c or c++?

1053


Is the declaration of a class its interface or its implementation?

1175


What is data binding in c++?

962


How can you create a virtual copy constructor?

1087


Write my own zero-argument manipulator that should work same as hex?

1053


What happens when the extern "c" char func (char*,waste) executes?

1089


What are abstract data types in c++?

986


What is data types c++?

1021


What is c++ and its features?

1017


Can you write a function similar to printf()?

1131


What is a dangling pointer in c++?

1156


Are there interfaces in c++?

1018