employee.java

来自「java基础编程的教程! 是内部培训的资料! 对java基础教学很好哦!」· Java 代码 · 共 28 行

JAVA
28
字号
public class Employee{
	protected String id;	
	protected String name;
	protected String address;
	protected String city;
	protected int age;
	public Employee(){

	}
	public Employee(String id,
			String name,
			String address,
			String city,
			int age){
		this.id=id;
		this.name=name;
		this.address=address;
		this.city=city;
		this.age=age;
	}
	public void printData(){
		System.out.println(id);
		System.out.println(name);
		System.out.println(address);
		System.out.println(city);
		System.out.println(age);
	}
}

⌨️ 快捷键说明

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