dimanche 5 juin 2022

Which design patterns should I use?

I want to create UML class diagram. My problem is:

Suppose you are creating a furniture store simulator. You have to deal with different types of furniture such as chairs, sofas, tables, cabinets from different styles such as classic, modern, retro and country. While creating individual furniture objects with the simulator, each furniture object must be able to be used together with other furniture objects that fit the same furniture style. In the simulator, at most one object should be able to function to create individual furniture objects from each furniture style. New furniture styles and furniture types should also be added in the future.

Which design patterns should I use together? Can you share a sample code or class diagram?

Aucun commentaire:

Enregistrer un commentaire