August 2013
Beginner
540 pages
12h 51m
English
After completing this chapter, you will be able to:
Organize classes into header files and source files.
Create objects.
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 ...