Class Scope Operations and Attributes

UML refers to an operation or an attribute that applies to a class, rather than an instance, as having class scope. This is equivalent to static members in C++ or Java and to class variables and methods in Smalltalk. Class scope features are underlined on a class diagram (see Figure 6-3).

Figure 6-3. Class Scope Notation

Get UML Distilled: A Brief Guide to the Standard Object Modeling Language, 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.