الطلب
“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.