Discuss / Java / 练习——person.java源代码

练习——person.java源代码

Topic source

YANGZY1202

#1 Created at ... [Delete] [Delete and Lock User]


public class Person {

	private String name;
	private int age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	// FIXME: 给Person增加getAge/setAge方法:

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
}


  • 1

Reply