You have already modeled fields:
Team
-------------------------
name : string
score : intA UML class diagram can also list methods.
For example:
Team
-------------------------
name : string
score : int
-------------------------
DisplayName() : void
ResetScore() : voidThe method compartment describes behavior available on the class.
For:
DisplayName() : voidread:
The empty parentheses match the current parameterless-method scope.
UML:
ResetScore() : voidC#:
public void ResetScore()
{
this.score = 0;
}The UML describes the class interface at a structural level.
The C# supplies the executable statements.
Parameters and non-void return values are taught later.
For current class diagrams, use simple parameterless void methods when that matches the source.
A class diagram answers:
A sequence diagram answers:
The same method name can appear in both diagrams for different reasons.