?? location.java
字號:
// Location.java
// Abstract superclass representing location in simulation
package com.deitel.jhtp5.elevator.model;
// Deitel packages
import com.deitel.jhtp5.elevator.event.*;
public abstract class Location {
// name of Location
private String locationName;
// set name of Location
protected void setLocationName( String name )
{
locationName = name;
}
// return name of Location
public String getLocationName()
{
return locationName;
}
// return Button at Location
public abstract Button getButton();
// return Door object at Location
public abstract Door getDoor();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -