Protected method in Java

ID: protected-method-in-java

A protected method is accessible to code in its package and, subject to the cross-package receiver restriction, to subclasses elsewhere. It can expose a subclass customization hook without being a public client operation. Protected access is broader than subclass-only access.
// Destination: computer-science.bigb

New to topics? Read the docs here!