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

How do you add an element to a set in c++?

932


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

944


When do we run a shell in the unix system? How will you tell which shell you are running?

914


What is the use of ::(scope resolution operator)?

1017


Is swift faster than go?

1041


Explain the difference between overloading and overriding?

1081


What is polymorphism and its type in c++?

1013


Why is the function main() special?

1039


What is :: operator in c++?

985


Can a class be static in c++?

1038


Which software is best for coding?

992


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1357


What is difference between class and structure in c++?

1130


Which programming language is best?

932


What is general form of pure virtual function? Explain?

940