Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advice for "042_Compositions" #2

Open
DJavierReyesM opened this issue Jan 1, 2021 · 0 comments
Open

Advice for "042_Compositions" #2

DJavierReyesM opened this issue Jan 1, 2021 · 0 comments

Comments

@DJavierReyesM
Copy link

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 .
Blank diagram (11)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant