Class diagrams show the static behavior of the software. A
class diagram depicts Classes, Interfaces, and methods with their
relationships. Let us see how a class is shown in a Class diagram. As shown in
figure 3 there are three parts of a class diagram. The class name, members and
Methods. A member can be a public or private variable. A method can be a public
or private. The return type of the method should also be shown. UML does not have
standard for C# properties, but we can use stereo types for defining the
properties. Stereo types are the way in which we can customize a UML diagrams.
A stereo Type is represented as <<"Some Stereo Type">>.
Figure 3
Figure 4 shows the usage of stereotypes in class diagrams. A
stereotype <<Interface>> has been created for showing that this is
an interface and not a Class.
Figure 4