Appendix C. UML Reference

UML Reference

This appendix provides a quick reference to the UML notation used throughout the book.

Classes

The UML represents a class through a box divided into three sections. The top section contains the name, the middle section contains the attributes, and the bottom section contains the methods.

Figure C.1 illustrates how the UML represents a class.

A UML class.

Figure C.1. A UML class.

Object

The UML represents objects the same as a class. The only difference is that the object’s name is underlined and the methods are omitted. The attributes may also show value.

Visibility

Figure C.2 illustrates how the UML represents attribute and method ...

Get Sams Teach Yourself Object Oriented Programming in 21 Days, Second 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.