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

why the argument is passed by reference to a copy constructor?example?

2 Answers  


What is polymorphism what is it for and how is it used?

0 Answers  


When will a constructor executed?

5 Answers   TCS,


What is abstraction oop?

0 Answers  


What is an advantage of polymorphism?

0 Answers  






What are the components of marker interface?

0 Answers  


What is object in oops?

0 Answers  


When is an object created and what is its lifetime?

4 Answers   IBM,


There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

4 Answers  


Why do we use virtual functions?

4 Answers  


What is multilevel inheritance?

0 Answers  


What is ambiguity in inheritance?

0 Answers  


Categories