Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Realization B implements A.
There are three kinds of blocks, for classes, interfaces/abstract classes, and packages.
The class is the most common diagram element and contains details of some of its
corresponding C# class's more important attributes (or fields) and operations (or
methods). A UML diagram is not meant to be an exact copy of a program, and thus only
the elements that are important to the pattern under consideration are shown. The
accessibility of all attributes and operations (private, public, or protected) is indicated.
The default for attributes is private and for operations is public. Deviations from the
defaults will be highlighted as they occur.
The types associated with attributes and operations are not usually given. However, when
these are important, they can be inserted after the identifier, separated by a colon. The
same relaxed approach applies to parameters of methods, which are not usually shown in
a diagram.