Childpublic class Child extends Object
Fields Summary |
---|
private String | name | private int | age |
Constructors Summary |
---|
Child()
| public Child(String name)
this.name = name;
|
Methods Summary |
---|
public int | getAge()
return age;
| public java.lang.String | getName()
return name;
| public void | setAge(int age)
this.age = age;
| public void | setName(java.lang.String name)
this.name = name;
|
|