Use this decision-making process chart to choose the correct visibility for your methods (functions) and properties (variables). Use the following access modifiers:
- public - default behavior when it is not specified
- private - visible inside original class
- protected - same as private, but it can also be accessed by children