Hide Implementation Details Principle

Said Olano - Nov 4 '23 - - Dev Community

A software module hides information (i.e. implementation details) by providing an interface, and not leak any unnecessary information.

When the implementation changes, the interface clients are using does not have to change.

Avoid putting private implementation details into a class’s interface.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .