ABSTRACT

In this chapter we develop C++ classes to represent points and lines in the projective plane. Because such points and lines share many properties the classes and methods for their classes are extremely similar. Rather than write two nearly identical classes, we first build a base “projective object” class that implements the common functionality. We then use the idea of inheritance to establish classes representing points and lines.