lundi 13 août 2018

black vs white arrows in defining relationships in design patterns

I am reviewing this guide on different design patterns. Currently, I am reviewing the Composite Design Pattern. Author provides a graph defining the relationship between different components. When I look at the graph, I notice that the Figure (which presumably is the Interface or Abstract Class) has relationships marked by black and white arrows. The Triangle and Rectangle class are related to the Figure by a white arrow and the Document and Group class are related by a black arrow. Here is a visual representation:

enter image description here

What is the difference between these two color coded arrows?

Aucun commentaire:

Enregistrer un commentaire