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...

When is a template better solution than a base class??

Answer Posted / faruk

1.when you are designing a generic class to contain or otherwise manage objects of other types.
2.when the format and behaviour of those other types are unimportant to their containment or management.
3.particularly when those other types are unknown.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c++ still best?

931


Is python better than c++?

978


What is meant by a delegate?

1031


what is Member Functions in Classes?

1113


List down the guideline that should be followed while using friend function.

1006


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

1152


What is the difference between c++ and turbo c++?

1101


Difference between overloaded functions and overridden functions

1002


What is iostream in c++ used for?

972


What is c++ & why it is used?

1028


What is the use of bit fields in structure declaration?

924


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

2310


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

1047


Which software is used for c++ programming?

1037


Can a list of string be stored within a two dimensional array?

958