Class templates help us define a generic class. This generic class can be used for any type that we can specify when we use the class for defining objects of the class. In this module, we will take a very simple example of a stack to understand how class templates can be defined and used. The stack is a data structure where whatever is inserted last is popped out first. It is used in programming, operating systems and even programs that are used by robots. We will see how class templates are defined, how members can be defined, how class templates are put to use and how specialization of a class template can be defined and used.
No Reviews found for this course.