vendredi 6 mars 2020

Combinatorial explosion of class hierarchy

I have a class hierarchies that differ only in some attributes and i want to create classes that are a combination of class hierarchies (like uml picture) which can lead to exploded hierarchy. is there any solution to this design? it is like decorator pattern but on attributes not on behavior. Is it possible to use decorator as an alternative to inheritanceenter image description here

Aucun commentaire:

Enregistrer un commentaire