14 Visibility Modifiers
51
public
As you may guess, this is the less restrictive modifier.
It’s the default modifier, and the member
declared as public is visible anywhere, obviously restricted by its scope. A public member defined
in a private class won’t be visible outside the scope where the class is visible.
Do'stlaringiz bilan baham: