Language - Private vs Public

> Code - (Programming|Computer) Language > Code - Grammar / Syntax (Lexical)

1 - About

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.

3 - Hiding Implementation

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