people.java

来自「这是一个关于J2EE的开源包common里的许多组件的示例应用程序,可以借鉴.」· Java 代码 · 共 75 行

JAVA
75
字号
package collections;

/**
 * Title : Base Dict Class
 * Description : here Description is the function of class, here maybe multirows    
 * @author        <a href="mailto:sunpeng@china.freeborders">kevin</a> 
 * @Version       1.0 
 */

/**
 * Class description goes here.
 * @version 1.0  2005-9-22 
 * @author kevin
 */
public class People
{
	private int age;
	private String name;
	private Country country;

	public People(int a, String n, Country c)
	{
		this.age = a;
		this.name = n;
		this.country = c;
	}

	/**
	 * @return Returns the age.
	 */
	public int getAge()
	{
		return age;
	}

	/**
	 * @param age The age to set.
	 */
	public void setAge(int age)
	{
		this.age = age;
	}

	/**
	 * @return Returns the country.
	 */
	public Country getCountry()
	{
		return country;
	}

	/**
	 * @param country The country to set.
	 */
	public void setCountry(Country country)
	{
		this.country = country;
	}

	/**
	 * @return Returns the name.
	 */
	public String getName()
	{
		return name;
	}

	/**
	 * @param name The name to set.
	 */
	public void setName(String name)
	{
		this.name = name;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?