what is the use of template classes in c++



what is the use of template classes in c++..

Answer / ags

Templates are used to avoid the repetition of similar
functions in any class.

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More OOPS Interview Questions

Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

0 Answers  


In which Scenario you will go for Interface or Abstract Class?

1 Answers   InfoAxon Technologies,


What is abstraction with example?

0 Answers  


what do you mean by static member variable?

2 Answers  


Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?

4 Answers   EA Electronic Arts,


Explain polymorphism? What r the types of polymorphism? pls give examples?

4 Answers   HCL,


whats the difference between c and c++

7 Answers   Syntel,


When is it necessary to use member-wise initialization list in C++?

2 Answers   Adobe,


can you give real time example for polymarphism

5 Answers   TCS,


what uses of c++ language?

3 Answers  


what are the uses of C++

1 Answers  


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

0 Answers  


Categories