Specialization, Extension, and Inheritance
- slide 16 : 40
Visibility and Inheritance
In most object-oriented programming languages it is possible to control the visibility of data and operations in relation to subclasses
Common visibility distinctions:
Private
Visibility limited to the class itself.
Instances of a given class can see each others private data and operations
Protected
Visibility is limited to the class itself and to its subclasses
Public
No visibility limitations