Chapter 6. More About Classes and Objects
After completing this chapter, you will be able to:
Organize classes into header files and source files.
Define constructors to initialize an object.
Define class-wide members by using the static keyword.
Define relationships between objects in an application.
Chapter 2, discusses how C++ is an object-oriented programming language. Recall from that chapter that you define classes to represent the important types of entities in your application, and you create objects as instances of these classes. For example, a Human Resources application might define classes such as Employee and Contract. When the application is running, it might create a new Employee object every time a new employee joins ...