Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


what is the usage of clas templates

Answers were Sorted based on User's Feedback



what is the usage of clas templates..

Answer / saurabh chauhan

templates are used to create generic functions as well as
classes..which can support miltiple data types..
they are mainly used when algorithm is commom for diff data
types...so we dont hav to implement again and again for
diff data types ..we make a generic func. which works for
all...

Is This Answer Correct ?    4 Yes 0 No

what is the usage of clas templates..

Answer / anil kumawat

through this we can make generic function. so this function
will work for any data type.

Is This Answer Correct ?    3 Yes 0 No

what is the usage of clas templates..

Answer / anil bisht

A template is a C++ feature that allows functions and
classes to be defined with any type.Class template is a
template used to generate template classes. You cannot
declare an object of a class template.Template class is an
instance of a class template.

Is This Answer Correct ?    3 Yes 0 No

what is the usage of clas templates..

Answer / james prasanna.j

We can able to operate "class template" functionalities in
generic way, which supports different data types.

Is This Answer Correct ?    3 Yes 2 No

what is the usage of clas templates..

Answer / keshav.gadde

Template is a mechanism that allows one function or class to
deal with diffrent data types.
Using templates we can design a template class that operates on
diffrent data types.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer



More OOPS Interview Questions

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

2 Answers   Adobe,


What does the keyword "static" mean?

4 Answers   TCS,


Can we create object of class with private constructor?

5 Answers  


any one please tell me the purpose of operator overloading

0 Answers   Amazon,


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

2 Answers  






What is use of overloading?

0 Answers  


char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output

9 Answers   Persistent,


WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.

11 Answers  


Conversion from a basic type to a class type may be achieved using______________

5 Answers   HCL,


what is data abstraction with example.

1 Answers  


what is virtual destructor

7 Answers   L&T, TCS,


What is differance between Abstract and Interface

3 Answers  






Categories