Back to Tags
Encapsulation
4 items tagged with "encapsulation"
Filter by type:
Patterns2
Pattern
Module
Encapsulates related code into a single self-contained unit with a controlled public interface and hidden private state, organizing code and avoiding global namespace pollution.
Pattern
Private Class Data
Restricts accessor-write access to class attributes by isolating data in a separate object exposed read-only after construction, enforcing immutability and encapsulation.
Anti-Patterns2
Anti-Pattern
Leaky Abstraction
An abstraction that fails to fully hide its underlying implementation, forcing callers to understand and depend on the details it was meant to encapsulate.
Anti-Pattern
Feature Envy
A method that is more interested in another class's data than its own, repeatedly reaching into that class instead of letting it own the behavior.