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

To what does “event-driven” refer?

1116


Write about the various sections of the executable image?

1035


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

1080


What is an accessor in c++?

1125


How can I disable the "echo" feature?

1240


What is the use of function pointer?

1075


How to declaring variables in c++?

1216


How do I start a c++ project?

1124


Explain class invariant.

1120


What is a static member?

1103


Briefly describe a B+ tree. What is bulk loading in it?

1406


What is the use of class in c++?

1125


What are the four main data types?

1139


Describe about storage allocation and scope of global, extern, static, local and register variables?

1306


what is C++ objects?

1248