mirror of
https://github.com/ASDjonok/OOP_IO-2x_2023.git
synced 2026-04-01 21:21:50 +03:00
update polymorphism example
This commit is contained in:
@@ -3,6 +3,7 @@ package encapsulationInheritancePolymorphism.polymorphism;
|
||||
public class ElectricEngine extends Engine {
|
||||
private String batteryType;
|
||||
|
||||
@Override
|
||||
public int getPower() {
|
||||
return 20;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user