Class Templates

In this lesson, we will learn about class templates in embedded programming.

A class template will be defined by placing the keyword template in front of the class template followed by type or non-type parameters.

  • The parameters are declared by class or typename.
  • The parameter can be used in the class body
  • You can define the methods of the class template inside or outside the class.

Get hands-on with 1400+ tech skills courses.