class Person extends java.lang.Object implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private int |
age |
private java.lang.String |
name |
Constructor and Description |
---|
Person(java.lang.String name,
int age) |
Modifier and Type | Method and Description |
---|---|
int |
getAge() |
java.lang.String |
getName() |
java.lang.String |
toString() |
public Person(java.lang.String name, int age)