📄 student.java
字号:
package dfbz.rmi;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
public class Student extends UnicastRemoteObject implements IStudent {
private String name;
private int age;
public Student() throws RemoteException{
}
public int getAge() throws RemoteException{
System.out.println("getAge");
return age;
}
public void setAge(int age) throws RemoteException{
System.out.println("setAge");
this.age = age;
}
public String getName() throws RemoteException{
System.out.println("getName");
return name;
}
public void setName(String name) throws RemoteException{
System.out.println("setName");
this.name = name;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -