In this chapter, you’ll begin writing programs that employ the basic concepts of object-oriented programming that we introduced in Section 1.3. One common feature of every program in Chapter 2 was that all the statements that performed tasks were located in function
main. Typically, the programs you develop in this book will consist of function
main and one or more classes, each containing data members and member functions. If you become part of a development team in industry, you might work on software systems that contain hundreds, or even thousands, of classes. In this chapter, we develop a simple, well-engineered framework for organizing object-oriented programs in C++.
We present a carefully paced sequence of complete ...