封装好的文件: 另外一个文件引用封装文件的方法: 来源: https://www.runoob.com/java/java-encapsulation.html 转载于:https://www.cnblogs.com/kaibindirver/p/9843284.html