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 difference between c++ and c ++ 14?

1112


Can user-defined object be declared as static data member of another class?

1076


What do you mean by funtion prototype?

1150


What does the ios::ate argument do?

1239


What is object in c++ wikipedia?

1064


Can you overload the operator+ for short integers?

1088


What is scope operator in c++?

1133


Difference between declaration and definition of a variable.

1231


Explain what you mean by a pointer.

1159


Is c++ an oop?

1194


What does return 0 do in c++?

1084


How can you link a c program with a c function?

1133


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

1164


What programming language should I learn first?

1153


Which is not a valid keyword a) public b) protected c) guarded

1307