006. Permission modifier

Public: (Public) Public, accessible, generally need to be accessed
Protected: (Protected) This category, sub-category, and the same package can be accessed according to the actual situation
Default: (default) The same package can be accessed, generally not recommended Default
Private: (private) Access is the most restrictive, only the methods and properties accessible by this class are not public

-------------------------------------------------- ----------------------------------------------
Original: https: //www.cnblogs.com/itml/p/12757797.html

If there is an error, please leave a message, please attach a blog post to reprint, thank you!

Guess you like

Origin www.cnblogs.com/itml/p/12757797.html