The image is an example of Composite Pattern.
However I have a restriction, that is that ConcreteComponent1 can only have ONE ConcreteComponent2.
Any idea how I can achieve that?
Thanks!
(Sorry but stackoverflow didnt let me include the picture here)
Aucun commentaire:
Enregistrer un commentaire