UML Flashcards
What does a Class diagram look like (3 parts)?
Classes (object), variables (state) & methods (behaviours)
What are the 4 types of relationships between objects?
- Dependency – “uses”
- Aggregation – “has a”
- Inheritance – “is a”
- Association – “uses”
What is the dependancy arrow?
What is the aggregation arrow?
What is the inheritance arrow?
What is the association arrow?
What is depedancy?
We use a dependency relationship to show when one element depends or uses another element.
It points from the independent entity to the dependent entity in the system.
What is association?
A generic retationship meaning that 2+ objects are related in some way.
Aggregation is a particular type of Association.
What is aggregation?
- Type of association
- HAS A
- 1 way relationship
- Both entries can survive individually
What is inheritance?
Inheritance is the mechanism by which one class is allow to inherit the features (states and behaviours) of another class.
Including a Super class and Sub Class
Key word EXTENDS
Parameter vs Argument