Skip to content

Advice for "042_Compositions" #2

@DJavierReyesM

Description

@DJavierReyesM

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions