Chapter 9 described a technique for designing an object-oriented program. This chapter illustrates that technique by using it to design a simple character-based windowing package written in C++. The source code for the classes can be found in the sample program directory.
The primary purpose of this chapter is not to describe windowing systems but to provide an demonstration of object-oriented design. Accordingly, the classes described in this chapter are intended to be examples only, not for use as a full-fledged windowing package. However, the decisions that go into the design of these classes should be useful in guiding you if you design a complete set of windowing classes.