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 using namespace std in c++?

1160


What is a stack? How it can be implemented?

1169


What is difference between c++ and c ++ 14?

1047


What is istream and ostream in c++?

1129


In a function declaration, what does extern mean?

1064


Can non graphic characters be used and processed in C++?

1193


Explain deep copy?

1054


write a programme to get a character and thier ASCII value

3043


Is c++ used anymore?

1094


How can you say that a template is better than a base class?

1073


What is the size of a vector?

1139


What is polymorphism and its type in c++?

1071


Can I learn c++ without c?

1144


What is #include math h in c++?

1083


What does h mean in maths?

1200