What are templates? where we should use it?
Answer Posted / satheeshkumar
Template allow us to write one function and class that
works for different datatype .
Use :
Create a type safe collection class that can operate on
data of any type.
add extra type checking for function.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the full form of india?
What is vector processing?
How do you remove an element from a set in c++?
What is an arraylist c++?
How do I run a program in notepad ++?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
Why we use #include conio h in c++?
Can c++ do everything c can?
What is the difference between the functions memmove() and memcpy()?
Is c++ a programming language?
What is set in c++?
What does it mean to declare a destructor as static?
What are the four partitions in which c++ compiler divides the ram?
Mention the ways in which parameterized can be invoked.
If a function doesn’t return a value, how do you declare the function?