O'Reilly logo

Building Parsers with Java™ by Steven John Metsker

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

A.4. Objects

An object diagram illustrates specific instances of classes, as Figure A.4 shows.

Figure A.4. Objects. The UML provides features for showing specific object structures and interactions.

In Figure A.4, note the following.

  • An object typically appears as a colon followed by the name of the class, all underlined, in a rectangle. For example, :Repetition indicates an object of the Repetition class.

  • A diagram can point out the name of a variable that references an object by prepending the name, as in good:Sequence.

  • A line between objects indicates that one object has a reference to another.

  • An object diagram can show the value of an instance ...

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