Language - Private vs Public


Private / Public is generally defines on a module and or class level.

  • Private implementation details are hidden from the outside world.
  • Public implementations becomes the API that is accessible from the outside.

Hiding Implementation

A common design pattern is to hide (make private) the most possible element.

Powered by ComboStrap