## 1 JavaBean

```groovy
class Person {
    private String name; //和 Java 不同，默认就有 getter/setter
    private int age;   
}
task taskPerson {
  Person p = new Person()
  p.name = '张三'
  p.age = 22
  println "$p.name;$p.age"
}
//out:
张三;22
```

