Method and Property Visibility

This lesson discusses access modifiers like public, private and protected and how they affect the visibility of members.

We'll cover the following

Access modifiers provide access to the variables of a class. In this lesson, we will discuss the three visibility types that you can apply to methods (class/object functions) and properties (class/object variables) within a class. Access modifiers provide access control for the method or property to which they are applied.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy