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 / mayank kumar

as template is in form of generic class and generic
function so here the class and function works for all. also
in template we can change the data type of function
parameter as well as of the data member present in class.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between strcpy() and strncpy()?

1145


What relational operators if statements in c++?

1180


What is a manipulative person?

1021


Why do we need function?

1056


How come you find out if a linked-list is a cycle or not?

1037


Is oops and c++ same?

1050


Is eclipse good for c++?

1056


What is the use of volatile variable?

1087


What is meant by the term name mangling in c++?

962


What do you mean by persistent and non persistent objects?

1435


What is a dll entry point?

1007


Why do we use setw in c++?

1115


Why do we use vector in c++?

1079


Where is atoi defined?

1144


What are vectors used for in c++?

1076