Delphi Private Visibility: Ensuring Class‑Level Encapsulation in Shared Units
Delphi Private Visibility and Class‑Level Encapsulation The goal is to guarantee that a class’s internal fields remain inaccessible to other classes that reside in the same source unit, while keeping those classes together for compilation convenience. In Delphi, the private specifier grants access to any code within the unit, not only to the enclosing class.