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

How does a copy constructor differs from an overloaded assignment operator?

965


How do I run c++?

996


Tell me an example where stacks are useful?

982


Write a program to concatenate two strings.

1027


Keyword mean in declaration?

1001


Why c++ is called oop?

1051


Are c and c++ different?

932


What are virtual constructors/destructors?

940


Write about a nested class and mention its use?

1044


What is abstraction in c++?

1268


Are c and c++ similar?

994


What is a type library?

1059


What is function overloading c++?

1018


What is a loop? What are different types of loops in c++?

1057


Explain terminate() and unexpected() function?

1035