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

write a program that takes input in digits and display the result in words from 1 to 1000

0 Answers   Wipro,


different types of castings

3 Answers   Siemens,


In OverLoading concept,Why they are not consider return value and why they are consider only parameters in method? For ex: public int Add(int a,int b){...} public String Add(int a,int b){...}

1 Answers  


Program to check whether a word starts with a capital letter or not.

1 Answers   Infosys,


What is the real time example of encapsulation?

0 Answers  






What do you mean by inheritance?

0 Answers   IBS,


Templates mean

0 Answers  


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

0 Answers   NIIT, SRA,


what is Class in oops with example?

4 Answers   HCL,


What is polymorphism ? Explain with examples

8 Answers   Ness Technologies,


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

0 Answers   HCL,


what is difference between c++ language and java language

5 Answers  


Categories