why to use template classes in c++?



why to use template classes in c++?..

Answer / swati

the template classes are use for the reuse of the data
types which you want to use the program for many times

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More OOPS Interview Questions

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  


why constructor cannt be declar virtually? why destructor cannt be overloaded?

2 Answers   Infosys,


how to find the largest of given numbers in an array

2 Answers  


What is difference between multiple inheritance and multilevel inheritance?

0 Answers  


Precompilation ?

1 Answers   emc2,


What is Object and Class? What are the differences between them?

5 Answers  


me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise

1 Answers  


Difference between over loading and over ridding?

12 Answers   CTS, Patni, Softvision Solution,


In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?

2 Answers  


inheritence with example

1 Answers  


What is encapsulation in simple terms?

0 Answers  


WHAT IS ABSTRUCT DATA TYPE ? PLEASE EXPLAIN IT.

4 Answers   HCL,


Categories