When we know what a classifier is, we can begin to connect them together. Connections can be done, by drawing lines between them… But there are different types:
- Association
- Generalisation
- Dependency
Association
If two classes need to communicate with each other, you can draw a link between them. This type of link is a association. You can draw an association as a line. In some cases you will to give some kind of a direction – then you can just draw an arrow in the specific direction.
Generalisation
This type is a parent child connection. So on of your classes is “a kind of” its parent class. Imagine you have a class call pet and a class for a dog and a cat. Both the dog and the can is child to the pet class because both a dog and a cat is a kind of a pet. You draw this as a solid line ending up with a open arrow. The arrow is pointing a the parent class.
Dependency
You use this kind of connection when you have a class that will change another class one modification. You draw this is a dotted arrow pointing a the class that is dependent on the other one.