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

Can we delete this pointer in c++?

1222


Why c++ is so important?

1080


When one must use recursion function? Mention what happens when recursion functions are declared inline?

1196


What are associate containers?

1040


What is ofstream c++?

1088


What are libraries in c++?

1071


Should the member functions which are made public in the base class be hidden?

1034


What are the main features of c++?

1014


Why do we use templates?

1059


When should overload new operator on a global basis or a class basis?

1081


What is a memory leak c++?

1141


What is c++ course?

1049


When you overload member functions, in what ways must they differ?

1048


What is searching? Explain linear and binary search.

998


Is c++ a dying language?

1154