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 between classes
Let’s look at implementing each of these relationships through an example.
First, let’s look at inheritance with the class designer. Suppose that you have a base class called EmployeeBase. This class represents a generic employee in your system. You then want to create ...