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

What is format for defining a structure?

1090


How should a contructor handle a failure?

1198


What is the difference between an external iterator and an internal iterator?

1112


What is a list c++?

1112


What is a local reference?

1194


What is meaning of in c++?

1220


Which operator cannot overload?

1054


What is input operator in c++?

1038


Write about the stack unwinding?

1068


Is the declaration of a class its interface or its implementation?

1179


How can we access protected and private members of a class?

1121


Explain what is class definition in c++ ?

1129


What is runtime polymorphism in c++?

1168


What are references in c++?

1144


What is #include iomanip?

1014