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...

What is a template?

Answer Posted / ravinandan

Template is used for generic programming. In other words
when you want to write a function or a class type
independent, go for templates.

template<class T>
void fun(T x, T y); // Is a Template function

template<typename T>
class abc{
T m;
}; // Is a Class Template

template<class T>
class abc{
T m;
}; // Is a Class Template

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by overloading?

1078


What is polymorphism and types?

1107


Why do we use class?

1090


How do you achieve runtime polymorphism?

1049


What is the fundamental idea of oop?

1141


when to use 'mutable' keyword and when to use 'const cast' in c++

2165


program for insertion ,deletion,sorting in double link list

2693


What is overloading in oop?

1012


Please send ford technologies placement paper 2 my mail id

2103


What is the real life example of polymorphism?

1177


What is use of overloading?

1150


What is the real time example of inheritance?

1153


What is abstract class in oops?

1026


what is the drawback of classical methods in oops?

3381


What is encapsulation with real life example?

1038