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

Application of the DECORATOR design pattern to resolve static features in the Room class. #1

Open
Gatumbac opened this issue Dec 15, 2024 · 0 comments

Comments

@Gatumbac
Copy link

Proposed solution:
Allow the Room class to be able to extend its features and functionality dynamically. The class currently has many boolean attributes that represent whether a room has additional features, such as TV or minibar. Instead of being static Booleans, these additional features could be set as decorators, which would provide greater flexibility to configure and customize rooms.

Consequences or implications of the redesign:
Since static Boolean attributes were previously used, it will be necessary to modify the data access logic in the database. Ideally, we would extract the data from BasicRoom and, in the business logic, handle the additional features using decorators.

Resources:
UML class diagram.
TAREA PATRONES (1)

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