student.java

来自「程序练习中包括书中实例程序代码和练习中要用到的代码,是压缩文件」· Java 代码 · 共 24 行

JAVA
24
字号
package examples.network;
import java.rmi.Remote;
import java.rmi.RemoteException;
/** An interface definition for a student object
  */
public interface Student extends Remote {
   /** Return the student's identification number
     */
   public int getID() throws RemoteException;
   /** Change the student's name
     */
   public void setName( String name )
                      throws RemoteException;
   /** Return the student's name
     */
   public String getName() throws RemoteException;
   /** Return the current number of course credits
     */
   public int getCredits() throws RemoteException;
   /** Add course credits and return the new total
     */
   public int addCredits( int credits )
                        throws RemoteException;
}

⌨️ 快捷键说明

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