シェア
問242回 EnergySupplyインタフェースで定義されている ・dispメソッドは抽象メソッド ・unitは定数 自動的にpublic static final修飾子が付加されている。interface EnergySupply { String unit = "kwh"; void disp();}AbstractPowerPlantクラスはEnergySupplyインタフェースを実装している。抽象クラスなのでインスタンス化できない。Abstrac