Chapter 4. Working with Relationships

What You'll Learn in This Hour:

  • How to model the connections among classes

  • How to visualize class-subclass relationships

  • How to show dependencies among classes

In the model that finished up the last hour, you were left with a set of classes that represent the vocabulary of basketball. Although this provides the basis for further exploration of what basketball is all about, it might be apparent to you that something's missing.

That “something” is a sense of the way the classes relate to one another. If you look at that model (refer to Figure 3.15), you'll see that it doesn't show how a player relates to the ball, how players make up a team, or how a game proceeds. It's as though you've constructed a laundry list ...

Get Sams Teach Yourself UML in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.