dimanche 10 décembre 2017

Decorator Design Pattern. Concrete decoration interaction with concrete component

How do I design my simple project [1] that concrete decoration (StrawberryIceCreamAdjustable) can change size of a cone, which is encapsulated in concrete component (PlainIceCream) class? Is it even a valid thing to do? Moreover, it would be good to keep eye on SOLID principles.

[1] UML class diagram: UML class diagram

Aucun commentaire:

Enregistrer un commentaire