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 scope resolution operator in c++ with example?

1085


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1132


What is the best c c++ compiler for windows?

1102


What is ios class in c++?

1174


Can we make copy constructor private in c++?

1094


How would you differentiate between a pre and post increment operators while overloading?

1195


What is the error in the code below and how should it be corrected?

821


Explain operator overloading.

1103


What are destructors?

1060


Do class declarations end with a semicolon?

1125


What is the basic difference between C and C++?

1229


what are Operators and explain with an example?

1222


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

1150


Write a program which uses Command Line Arguments

1229


How to allocate memory dynamically for a reference?

1091