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

Applying Refactoring Technique: Encapsulate Field #24

Open
ManzanillaSebastian opened this issue Jan 13, 2025 · 0 comments
Open

Applying Refactoring Technique: Encapsulate Field #24

ManzanillaSebastian opened this issue Jan 13, 2025 · 0 comments

Comments

@ManzanillaSebastian
Copy link

Inside the Level class, the key attribute is declared as public. This attribute is unique for each level and should not be changed by any external class. The advantage of applying this technique is: avoiding unexpected errors caused by unwanted parameter changes.
Captura de pantalla 2025-01-12 210812
Captura de pantalla 2025-01-12 211011

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