Introduction to OOP Chapter 4: Classes and Methods: next previous audio real text

Visibility Modifiers

The terms public and private are used to differentiate the internal and external aspects of a class.

Typically methods are public and data fields are private, but either can be placed in either category.

Intro OOP, Chapter 4, Slide 8