Language - Private vs Public

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.

code/grammar/public_private.txt ยท Last modified: 2018/11/30 18:58 by gerardnico