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 / nishikant sahu

If programmer intended to act the class as a BASE class
somewhere then it is rule of thumb or good programming that
you have to have declare your constructor virtual.

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

1070


Write bites in Turbo c++ Header ("Include") Files.

1259


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

994


What is command line arguments in C++? What are its uses? Where we have to use this?

1266


How can you create a virtual copy constructor?

1081


What is the real purpose of class – to export data?

1106


Explain the differences between private, public and protected and give examples.

1019


What is a buffer c++?

1057


What is function declaration in c++ with example?

1091


What is abstract keyword in c++?

1068


What is constructor c++?

1112


What is #include cstdlib in c++?

1176


What is input operator in c++?

1031


How to access a variable of the structure?

1076


What are vtable and vptr?

1138