UML_basics Flashcards
A UML class diagram is made up of …
A set of classes and a set of relationships between classes
Purpose of Class Diagrams
Shows static structure of classifiers in a system
What is a Class
A description of a group of objects all with similar roles in the system
Class consists of …
attributes (Structural features) and operations (Behavioral features)
A class notation consists of three parts: …, Class Attributes, Class Operations (Methods)
Class Name
What is Class Relationships?
Connection with other classes
Type of relationship when subclass is specialization of super class
inheritance
Structural link between two class
association
A special type of association. It represents a “part of” relationship
aggregation
A special type of aggregation where parts are destroyed when the whole is destroyed.
Composition
Exists between two classes if the changes to the definition of one may cause changes to the other
Dependency
They often have a small arrowhead to show the direction in which direction to read the relationship
Relationship Names
… are written at the ends of an association line and describe the purpose played by that class in the relationship.
Roles
The arrows indicate whether, given one instance participating in a relationship, it is possible to determine the instances of the other class that are related to it.
navigability
denotes public attributes or operations
+