employeeimpl.java
来自「程序练习中包括书中实例程序代码和练习中要用到的代码,是压缩文件」· Java 代码 · 共 30 行
JAVA
30 行
package questions.c16;
import java.rmi.RemoteException;
public class EmployeeImpl implements Employee {
private int serial;
private String name;
private double salary;
public EmployeeImpl( int serial, String name,
double salary ) {
this.serial = serial;
this.name = name;
this.salary = salary;
}
public int getSerial() throws RemoteException {
return serial;
}
public void setName( String name )
throws RemoteException {
this.name = name;
}
public String getName() throws RemoteException {
return name;
}
public void setSalary( double salary )
throws RemoteException {
this.salary = salary;
}
public double getSalary() throws RemoteException {
return salary;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?