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 local variable?

1082


Declare a class vehicle and make it an abstract data type.

964


What is the real purpose of class – to export data?

1106


Is string data type in c++?

1029


What is a forward referencing and when should it be used?

1164


What it is and how it might be called (2 methods).

1179


How does list r; differs from list r();?

1147


Does there exist any other function which can be used to convert an integer or a float to a string?

1076


How to implement is-a and has-a class relationships?

1022


Why main function is special in c++?

1117


What is the need of a destructor?

1135


What is purpose of new operator?

1071


How much do c++ programmers make?

1104


Name the implicit member functions of a class.

1078


What is a tree in c++?

970