One of the biggest benefits of the class diagram is that it visually represents the relationships between classes. These relationships are much easier to see in a diagram than through code. The following relationships can be represented:
Inheritance—Indicates whether a class inherits from another class
Interface—Indicates whether a class implements one or more interfaces
Association—Indicates an association ...