Differentiate between a template class and class template?
Answer / beena
Template class:
A generic definition or a parameterized class not instantiated until the client provides the needed information. It’s jargon for plain templates.
Class template:
A class template specifies how individual classes can be constructed much like the way a class specifies how individual objects can be constructed. It’s jargon for plain classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.
What are the advantages of c++?
What does it mean to declare a member function as static?
What is the sequence of destruction of local objects?
What is the use of class in c++?
What is iterator in c++?
What is c++ try block?
Write some differences between an external iterator and an internal iterator?
How many pointers are required to reverse a link list?
Explain binary search.
Which is the best c++ compiler for beginners?
What is the insertion operator and what does it do?