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 a binary file? List the merits and demerits of the binary file usagein C++.

1378


What are abstract data types in c++?

1042


What is the use of default constructor?

1148


Is oops and c++ same?

1094


Why do we need c++?

1107


What is c++ 11 and c++ 14?

1114


What character terminates all character array strings a) b) . c) END

1363


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

1089


What is difference between malloc()/free() and new/delete?

1223


Is arr and &arr are same expression for an array?

1104


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

1243


What is ofstream c++?

1154


Write some differences between an external iterator and an internal iterator?

1087


Write about a nested class and mention its use?

1168


Which programming language is best to learn first?

1125