Skip to content

Applying Refactoring Technique: Encapsulate Field #24

Description

@ManzanillaSebastian

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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