## 22.7 Case Study: Matrices, Cont.

- Create a template version of the `Matrix` class
- Start with the class in chptr. 19
  - Avoids explaining interactions between templates and nested classes
  - No reason to make the exception classes into templates
- Parameterize the element type only
- Not the row and column bounds; simplifies overloading the arithmetic operators
- Zero is no longer an appropriate value for all types; remove the initializer loop in the c'tor
- Move member function definitions into the header file

prev |top |next