A.3. Interfaces

Figure A.3 shows the basic features for illustrating interfaces.

Figure A.3. Interfaces. Unless there is other structural information that you want to illustrate, you can use a simple line and circle to show that a class implements an interface.

In Figure A.3, note the following.

  • A diagram can show that a class implements an interface by showing a line and circle (a “lollipop”) and the name of the interface. The Assembly class, for example, implements the Enumeration and PubliclyCloneable interfaces.

  • A diagram can also show an interface by placing the text <<interface>> and the name of the interface in a rectangle, as Figure A.3 ...

Get Building Parsers with Java™ 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.