update inheritance example

This commit is contained in:
Oleksii Aleshchenko
2023-03-02 14:41:44 +02:00
parent 2880b770f7
commit 4b159fa22b
3 changed files with 11 additions and 1 deletions
@@ -2,4 +2,8 @@ package encapsulationInheritancePolymorphism.inheritance;
public class ElectricEngine extends Engine {
private String batteryType;
/*private class Engine {
private int power;
}*/
}