Skip to content

Applying Refactoring Technique: Encapsulate Field #24

@ManzanillaSebastian

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

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