-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hello again, I have a recommendation for 042_Compositions:The motivation lies in the fact that you want the system / application to have an interface for the creation of families of related objects without there being a dependency on the specific classes of these objects to promote future extensibility. For the present project, there are classes "Monitor", "Motherboard" and "Case" which are concrete classes used by a class "Computer" in its constructor. These concrete classes are families that are related to being components of a computer, and they can also have variations - cite High Range or Low Range as an example. By implementing Abstract Factory, these variations can be created to create Computers with high-end and low-end components -citing it as an example-, through a creation interface without depending on specific classes, favoring the extensibility of the system and reducing the coupling between classes .