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 inheritance
Aucun commentaire:
Enregistrer un commentaire