Complete the code to identify the main components of a class diagram.
A class diagram mainly shows [1], their attributes, and methods.
Class diagrams represent classes, which define the structure and behavior of objects in software design.
Complete the sentence to describe relationships in class diagrams.
Inheritance in class diagrams is shown by an arrow pointing from the [1] class to the [2] class.
In inheritance, the arrow points from the child (subclass) to the parent (superclass) to show the child inherits from the parent.
Fix the error in the description of aggregation in class diagrams.
Aggregation represents a [1] relationship where the lifetime of the part does not depend on the whole.
Aggregation is a weak 'has-a' relationship where parts can exist independently of the whole.
Fill both blanks to complete the description of multiplicity in class diagrams.
Multiplicity defines how many instances of a class can be associated with [1] instance of another class. It is shown using [2] near the association line.
Multiplicity shows how many instances of a class relate to one instance of another class, using numbers like 1, 0..*, or 1..* near the association line.
Fill all three blanks to complete the code describing visibility in class diagrams.
In class diagrams, [1] visibility means an attribute or method is accessible only within its [2]. [3] visibility means it is accessible from any class.
Private visibility restricts access to within the class itself. Public visibility allows access from any class.