Objects

An object diagram illustrates specific instances of classes, as Figure C.4 shows. Following are notes on object diagrams.

Figure C.4. Depictions of objects indicate the objects' names and/or types. A sequence diagram shows a succession of method calls.

  • You can show an object by giving its name and type, separated by a colon. You may optionally show just the name, or just a colon and the type. In any case, underline the name and/or type of the object.

  • Use a line between objects to indicate that one object has a reference to another. You can use an open arrowhead to emphasize the direction of the reference.

  • You can show a sequence of objects ...

Get Design Patterns Java™ Workbook 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.