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

STRUCTURAL DESING PATTERN #1

Open
lnsalaza opened this issue Aug 3, 2021 · 0 comments
Open

STRUCTURAL DESING PATTERN #1

lnsalaza opened this issue Aug 3, 2021 · 0 comments

Comments

@lnsalaza
Copy link

lnsalaza commented Aug 3, 2021

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

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