What are templates? where we should use it?
Answers were Sorted based on User's Feedback
Answer / prabhatkr09
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 ? | 6 Yes | 1 No |
Answer / 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 |
Does c++ support multilevel and multiple inheritances?
What are the implicit member functions of class?
When is dynamic checking necessary?
What are move semantics?
Are there any special rules about inlining?
Define a program that reads two matrices of size 3x3 with real values from the user then prints their sum, difference and multiplication.
What is c++ redistributable?
Do you know what are static and dynamic type checking?
What is code reusability in c++?
Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast
What is an action class?
Compare compile time polymorphism and Runtime polymorphism