mardi 19 novembre 2019

Composite Design Pattern - Genealogical Tree

I would like to model a genealogical tree with the composite pattern. For simplicity I am only interested:

to the marriage relationship between two people to the paternity relationship between a parent and all her children.

For simplicity, it is not necessary to indicate any constraint on sex and number of parents.

relationship: parent or child

enter image description here

Where am I wrong?

Aucun commentaire:

Enregistrer un commentaire