Chapter 19. Designing for Visibility

 

A mathematician is a device for turning coffee into theorems.

 
 --Paul Erdös

Introduction

Visibility is the ability of one object to see or have reference to another. This chapter explores this basic but necessary design issue; those new to object design sometimes don't think about and design to achieve necessary visibility.

Introduction

Visibility Between Objects

The designs created for the system operations (enterItem, and so on) illustrate messages between objects. For a sender object to send a message to a receiver object, the sender must be visible ...

Get Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development, 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.