memento-two-interfaces-narrow-and-wide

Status: IN

A Memento has two interfaces: a narrow (public) interface for the Caretaker allowing only opaque pass-through, and a wide (private) interface for the Originator providing full state access — enforced in C++ via the friend class mechanism.

Source: entries/2026/06/17/gof-oo-chunk-18.md

Depended on by

JSON