Java Java Access Modifiers Access modifiers

 

   Modifiers access to a total of four: Private, default (default), protected, public

 

   Can be modified classes, methods, and modifiers on the property, what does

    

 

 

  Control of access modifiers for methods and properties

  

  Typically the general category to public, general attribute set to private, the method generally set public (using a few protected, private)

 

 

 

 

 

  

  



Guess you like

Origin www.cnblogs.com/seviyan/p/11616846.html