We can set the visibility of a Property or Method by prefixing the declaration with the following keywords public, protected, or private.
- A public specifier signifies that the members are accessible from everywhere within your application.
- A protected specifier indicates that the members are accessible from within the class, the one that inherits it, and from the parent as well.
- Private specifier restricts that the members should only be accessible from within the class.