product.java

来自「core java第二卷源代码第三章。欢迎大家下载」· Java 代码 · 共 29 行

JAVA
29
字号
/**
   @version 1.00 1996-09-07
   @author Cay Horstmann
*/

import java.rmi.*;

/**
   The interface for remote product objects.
*/
public interface Product extends Remote
{ 
   /**
      Gets the description of this product.
      @return the product description
   */
   String getDescription() throws RemoteException;

   /**
      Gets the name of the image file.
      @return the image file name
   */
   String getImageFile() throws RemoteException;

   final int MALE = 1;
   final int FEMALE = 2;
   final int BOTH = MALE + FEMALE;
}

⌨️ 快捷键说明

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