Interview Questions

Differentiate between a template class and class template.

C++ Interview Questions and Answers


(Continued from previous question...)

3. Differentiate between a template class and class template.

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.

(Continued on next question...)

Other Interview Questions