Qualifier before the java method

protected inherit the access rights: if coupled with this qualifier before the methods, classes within the same package can use this method.

private No access: If this qualifier before adding method, class other packages can not use this method.

public interface of access: if this qualifier before adding method, or the same class in different packages may be packages using the present method.

Guess you like

Origin www.cnblogs.com/JMangel/p/11443974.html