scsiharddrive.java
来自「程序练习中包括书中实例程序代码和练习中要用到的代码,是压缩文件」· Java 代码 · 共 20 行
JAVA
20 行
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 + =
减小字号Ctrl + -
显示快捷键?