1) Class Name [usually starts with Capital letter]
2) Attributes/Properties of the Class
3) Methods/Operations present in the Class.
Visibility of the attributes/methods is represented by below symbols preceding the name:
1) + : Implies public visibility.
2) - : Implies private visibility.
3) # : Implies protected visibility.
Method parameters and return type are represented in below manner:
GetName(id: int, state: string) : string
A sample class diagram can be found below:


Join the conversation! Your thoughts help the community grow.