הבקשה
“Create an abstract factory UML class diagram for an application that uses light and dark GUI factories to create buttons and checkboxes.”
ואז נסוAdd a createMenu method to GUIFactory.Add light and dark menu classes.
מה מופיע בתרשים הזה
פענחו את ההחלטות שמאחוריו.
01
Use interface-based factories
02
Separate product families into hierarchies
When a system must be independent of how its products are created and families of products are used together.