诚心心情

文章
2
资源
0
加入时间
4年1月3天

Groovy 之 面向对象

对象​ 首先创建一个 Person 类class Person { String name; Integer age; /** * 定义方法 ,def 代表的就是 object * @param years */ def increateAge(Integer years) { this.age += years...