## 20.8 Case Study: Matrices, Continued

- `MatrixRow` and `ConstMatrixRow` are nested in `Matrix`
  - Renamed to `Row` and `constRow`
  - Declared as `private`, since they won't be created outside of `Matrix`
  - Replaced references to MatrixRow with `Matrix::Row`
- Nested `MatrixIndexException` and `MatrixMismatchException` inside `Matrix`
- Wrapped all classes in the `BigCPlusPlus_Matrix` namespace
  - No `using` statements in header file
  - Test file aliases and imports all of `BigCPlusPlus_Matrix`, and `std::cout`

prev |top |next