java package in use (MyEclipse Tool)

Packaging can be achieved privatized property, the property modifiers by the public instead of private class, those who do so, other classes can not access private class was modified objects, we typically use setter / getter () method implementation of these access to the object. Achieved by adding a shortcut key combination Ctrl + Shift + S after the operation code as shown in FIG disposed setter / getter () method, can be other types of id, name, pwd three objects accessed. Available () method if else statement is added to achieve specific requirements setter / getter e.g. such operations.

Guess you like

Origin www.cnblogs.com/yf178570/p/11980545.html