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...

How do you know that your class needs a virtual destructor?

Answer Posted / melos

If the class will be derived from and it will need a virtual
destructor so that the destructor of the derived class will
be invoked if it referenced using the pointer to the base class.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is this pointer in c++?

1392


Difference between pointer to constant vs. Pointer constant

1121


How would you call C functions from C++ and vice versa?

1163


Can create new c++ operators?

1025


Why do we use string in c++?

933


Explain the register storage classes in c++.

1186


What do you mean by vtable and vptr in c++?

1041


What are namespaces in c++?

1086


What is class invariant in c++?

1223


Are php strings immutable?

1048


Is it possible for a member function to use delete this?

1073


What is the best c++ compiler?

1142


What is the basic concept of c++?

1007


Do class declarations end with a semicolon? Do class method definitions?

1144


How does c++ sort work?

963