📄 boeing767.java
字号:
public class Boeing767 extends AbstractAircraft implements Sellable { public Boeing767() { manufacturer = "Boeing"; model = "767-300"; weight = 395000; wingspan = 156; } public float computeFuelRequirement(float cargoWeight, int numPassengers) { // implementation for this specific aircraft would know how to // compute its fuel requirements, let's just use a constant return 24000; } public String getDescription() { return manufacturer + " " + model; }; public String getUnits() { return "Each"; } public double getPricePerUnit() { return 100000000.00; } public double getWeight() { return weight; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -