temp-oop/src/encapsulationInheritancePol.../polymorphism/FuelEngine.java

11 lines
200 B
Java

package encapsulationInheritancePolymorphism.polymorphism;
public class FuelEngine extends Engine {
private String fuelType;
@Override
public int getPower() {
return 50;
}
}