多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
![](https://box.kancloud.cn/342f5156616d1e7a41b6cbef797df127_405x165.png) ![](https://box.kancloud.cn/70133f9fcaa6879ec4c5b61c554c8887_400x286.png) Person.java ~~~ package obj.a2; public class Person { String name; String sex; int age=23; public void eat(){ System.out.println("正在吃饭"); } } ~~~ Test.java ~~~ package obj.a2; public class Test { public static void main(String[] args){ Person p1 =new Person(); System.out.println(p1.age); Person p2 =new Person(); p2.age=12; System.out.println(p2.age); } } ~~~ ![](https://box.kancloud.cn/8a6aec3e676927ad76540de28e14fe56_122x53.png)