Give three the examples of association.
Answers
Association
If two classes in a model need to communicate with each other, there must be link between them, and that can be represented by an association (connector). Association can be represented by a line between these classes with an arrow indicating the navigation direction. In case arrow is on the both sides, association has bidirectional association.
We can indicate the multiplicity of an association by adding multiplicity adornments to the line denoting the association. The example indicates that a Student has one or more Instructors:
A single student can associate with multiple teachers:
The example that every Instructor has one or more Students:
We can also indicate the behavior of an object in an association (i.e., the role of an object) using role names.
i hope this will help you
please mark my answer as brainlist
Association
Association defines the relationship between two or more classes in the System. These generally relates to the one object having instance or reference of another object inside it.
Class diagram example of association between two classes
An Association represents a family of links.
Binary associations (with two ends) are normally represented as a line, with each end connected to a class box.
Higher order associations can be drawn with more than two ends. In such cases, the ends are connected to a central diamond.
An association can be named, and the ends of an association can be adorned with role names, ownership indicators, multiplicity, visibility, and other properties.
There are five different types of association.
Bi-directional and uni-directional associations are the most common ones. For instance, a flight class is associated with a plane class bi-directionally. Associations can only be shown on class diagrams. Association represents the static relationship shared among the objects of two classes. Example: "department offers courses", is an association relation. In order to further describe the behavior of systems, these class diagrams can be complemented by state diagram or UML state machine.
Also instead of class diagrams Object role modeling can be used if you just want to model the classes and their relationships.