An example of Class Diagram in Java