Download CD Content
In the last chapter, you learned about the software object. Almost every program you saw involved a single object. That's a great way to begin to understand how objects work, but the true power of OOP can only be appreciated by seeing a group of objects work together. In this chapter, you'll learn to create multiple objects and define relationships among them so that they can interact. Specifically, you'll learn to do the following:
Create objects of different classes in the same program
Allow objects to communicate with each other
Create more complex objects by combining simpler ones
Derive new classes from existing ones
Extend the definition of existing classes
Override method definitions of existing classes