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

📄 scsiharddrive.java

📁 程序练习中包括书中实例程序代码和练习中要用到的代码,是压缩文件
💻 JAVA
字号:
package examples.inner;

/** A class definition to show how it is possible
  * to use an inner class as a superclass
  */
public class SCSIHardDrive extends Computer.HardDrive {

  private static final int DRIVE_CAPACITY = 512;

  /** Construct a SCSI hard drive object within an
    * enclosing Computer instance
    * @param c the enclosing computer instance
    * @exception Exception is thrown if there is no
    *    room to put the hard drive into the computer
    */
  public SCSIHardDrive( Computer c ) throws Exception {
    c.super( DRIVE_CAPACITY );
  }

}

⌨️ 快捷键说明

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