A UML Class diagram is a visual representation of the classes and their relations in an object oriented program.
Classes are represented as a combination of:
- Their name
- Attributes
- Methods
Example
Visibility
An attribute or method may be given a prefix to denote it’s visibility to the outside world:
public
→+
private
→-
protected
→#
package
→~