Skip to content

STRUCTURAL DESING PATTERN #1

@lnsalaza

Description

@lnsalaza

Hello, as a task related to the Software Design course, my gruop and I were given the task of analyzing this project, where we could see that its design could include a Desing Patter, Decorator Pattern to be more specific.

The current way in which the use of accessories is implemented as seen only allows the addition of one accessory per car, this clearly limits the potential of the Car class. In addition to this, only one type of car can be observed that although it is They can create with different specifications, there is no prototype for the design of each one, which would be appropriate.
image

To solve this we propose to implement the use of the Decorator Pattern, it supposes eliminating the restriction of having only one accessory per Car since it allows an organization by layers, in addition to that these accessories can now have their own behavior and in conjunction with the base class where it will be added the accessory. On the other hand, the pattern also establishes the possibility of classifying the cars in a specific way.
Tarea Patrones - CarFacoty verybluebird  - Decorator

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