📄 scsiharddrive.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 + -