System Development
- How would you show the existence of a list in a class diagram?
- How would you show multiple classes relations to one another?
- Provide an example to various types of relations
- Define the term multiplicity
Question 1
Amongst the properties listed you would define a list as such Name | DataType<>
Question 2
Multiple arrows pointing from one to another vv.
Question 3
1️⃣ Association (→)
- Represents a relationship between two classes
- Example: A
Car has a Driver
2️⃣ Aggregation (◇)
- A "whole-part" relationship where the part can exist independently
- Example: A
Library contains Books, but a Book can exist without the Library
3️⃣ Composition (◆)
- A stronger "whole-part" relationship where the part cannot exist without the whole
- Example: A
House has Rooms, and if the House is destroyed, so are the Rooms