JAVA learning to understand package

  For understanding the package is meant to be hidden inside a class property or method of privatization, i.e. with the modified private key. The outside world can not directly access the class method of privatization or privatized property. To indirectly access the required operations, such as: public achieved by a modified method for the attribute can get, set, or to initialize the method comprising the constructor parameter attributes, the attribute value and the like obtained. For the method can be invoked by a common method, the method is performed inside private methods. To achieve indirect execution.

Guess you like

Origin www.cnblogs.com/yindong2019/p/11780746.html