Introduction to OOP | Chapter 4: Classes and Methods: | next | previous | audio | real | text |
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.