What are templates? where we should use it?
Answer Posted / 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 |
Post New Answer View All Answers
Explain method of creating object in C++ ?
Why namespace is used in c++?
Is swift a good first language?
What are friend functions in C++?
What is name hiding in c++?
What is meant by a delegate?
Do you know what are pure virtual functions?
How does com provide language transparency?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What is virtual table?
Can member functions be private?
How can we access protected and private members of a class?
If a header file is included twice by mistake in the program, will it give any error?