8.0. Notation

Let's now explore the fundamental elements present on sequence and collaboration diagrams, two of the most commonly used behavioral diagrams. This material can also be found in Chapter 3.

8.0.1. Object

An object is an instance of a class and is represented by a rectangle. An object can be named in three different ways. First, and probably most common, we can specify the class that this object is an instance of. We specify the class name, preceded by a semicolon and underlined, in the object rectangle. Second, we can specify only the object name, neglecting the class name. We do so by omitting the class name and semicolon and simply ...

Get Java™ Design: Objects, UML, and Process 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.