⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 productimpl.java

📁 这个是我老师给的关于Java核心技术2的第5章的源代码
💻 JAVA
字号:
/**
   @version 1.00 1996-09-07
   @author Cay Horstmann
*/

import java.rmi.*;
import java.rmi.server.*;

/**
   This is the implementation class for the remote product
   objects.
*/
public class ProductImpl
   extends UnicastRemoteObject
   implements Product
{ 
   /**
      Constructs a product implementation
      @param n the product name
   */
   public ProductImpl(String n) throws RemoteException
   {  
      name = n;
   }

   public String getDescription() throws RemoteException
   {  
      return "I am a " + name + ". Buy me!";
   }

   private String name;
}

⌨️ 快捷键说明

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