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 a float in c++?

1028


Explain deep copy?

1104


What is data structure in c++?

1191


What is helper in c++?

1148


Explain how to initialize a const data member.

1176


How does class accomplish data hiding in c++?

1227


What is a string example?

1146


What is the purpose of ios::basefield in the following statement?

1303


What is while loops?

1099


Why do we use the using declaration?

1235


Do the parentheses after the type name make a difference with new?

1138


Differentiate between structure and class in c++.

1137


What is the best free c++ compiler for windows?

1150


What do you know about near, far and huge pointer?

1217


Explain the operation of overloading of an assignment operator.

1226