Typical information in a class diagram includes classes, associations, and inheritance. The class represents entities with common characteristics or features such as attributes, associations, and operations. In UML, a class is depicted as a compartmentalized rectangle. The top section of the rectangle contains the name of the class. The middle section contains the structure of the class or a list of its attributes.
Associations represent relationships between objects in associated classes.
In UML, an association is drawn as a line connecting associated classes. Multiplicity defines the number of objects that participate in the given relationship. The multiplicity of the association is shown below. The adjacent superclass has two subclasses, subclass1 and subclass 2. The two subclasses are mutually exclusive.