adspace
what is difference between class template and template class?
Answer Posted / Rajeev Raghuwanshi
Class Template and Template Class are both used in C++ to achieve generic programming, but they are slightly different. A Class Template allows you to create a generalized class that can be instantiated for specific data types at the time of use, while a Template Class is a template for a class itself. In other words, a Class Template is used to create a generic instance of a class, whereas a Template Class is used to create a generic class definition.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers