public class Person extends Object
| 构造器和说明 |
|---|
Person()
Instantiates a new Person.
|
Person(String name,
Integer age)
Instantiates a new Person.
|
public Person(String name, Integer age)
name - the nameage - the agepublic Person()
public static void main(String[] args)
args - the input argumentspublic String getName()
public void setName(String name)
name - the namepublic Integer getAge()
public void setAge(Integer age)
age - the ageCopyright © 2019. All rights reserved.