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

11 lines
200 B
Java
Raw Normal View History

2023-03-02 15:26:42 +02:00
package encapsulationInheritancePolymorphism.polymorphism;
public class FuelEngine extends Engine {
private String fuelType;
2023-03-02 15:48:38 +02:00
@Override
2023-03-02 15:26:42 +02:00
public int getPower() {
return 50;
}
}