chapter  16
28 Pages

A Matrix Class

C++ does not have a built-in class that represents a matrix of real numbers. We’re going to write our own in this chapter.

During the course of writing a Matrix class we will cover some interesting C++ topics. Specifically, • constructors and destructors,

• operator overloading,

• the rule of three,

• returning references,

• overloading using const.