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

Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

1036


Can java be faster than c++?

1147


What is a constant? Explain with an example.

992


What is const pointer and const reference?

1142


Can we use this pointer inside static member function?

1059


What is a hash function c++?

1058


How a macro differs from a template?

1151


Should I learn c++ c?

1035


Explain all the C++ concepts using examples.

1191


Which bit wise operator is suitable for checking whether a particular bit is on or off?

1010


Refer to a name of class or function that is defined within a namespace?

1108


Can a function take variable length arguments, if yes, how?

999


What causes a runtime error c++?

1113


What is the main purpose of c++?

1054


What is a container class? What are the types of container classes in c++?

1239