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

Can you explain polymorphism?

0 Answers  


What is ambiguity in inheritance?

0 Answers  


How can we use the preprocessor #if and #elseif.

2 Answers  


Have you ever interfaced with a database?

2 Answers   IBM,


What are the 4 pillars of oop?

0 Answers  






INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

0 Answers  


How to call a non virtual function in the derived class by using base class pointer

3 Answers   HCL,


write a program for function overloading?

14 Answers   HCL, InfoCity, TATA,


some one give d clear explanation for polymorphism

3 Answers  


what is the function of 'this' operator ?

7 Answers   Wipro,


How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.

4 Answers   NIIT, TCS,


what is the difference between a package and a software?

3 Answers  


Categories