What is a protected method?
A protected method can be called by any subclass within its class, but not by unreleated classes.
Declaring a method protected defines its access level.
The other options for declaring visibility are private and public.
If undeclared, the default access level is package.
Bookmark What is a Protected Method?



