Encapsulation

Kind: principle

Layer: Structural Core

Record: architecture:encapsulation

Severity: mandatory

Scope: class, module, component

Canonical: Ontology

A design rule that an object's state is changed only through its own operations, which keep its invariants.

Listed in Architecture principles, after Low Coupling and before Information Hiding.

Requires

Reinforces

Enables

Conflicts with

In tension with

Tensions

Violated by

Refactored by

Severity

Category

Reinforced by

Required by

Linked from