O'Reilly logo

Object-Oriented Design Heuristics by Arthur J. Riel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. The Relationships Between Classes and Objects

Introduction to Class and Object Relationships

An object-oriented design requires that the developer first find some of the key abstractions of the system along with their well-defined public interfaces. The second step consists of describing the relationships between these key abstractions. In the object-oriented paradigm, we discuss these relationships as falling into one of four categories:

  • the uses relationship (object-based);

  • the containment relationship (object-based);

  • the inheritance relationship (class-based);

  • the association relationship (object-based).

The term “object-based versus class-based” does not describe the method in which a relationship is defined, namely, with objects or with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required