@ -45,7 +45,7 @@ System.out.println(modelS.getManufacturerName());
|
||||
modelS.charge();
|
||||
```
|
||||
|
||||
 <a href='https://repl.it/CJZY/0' target='_blank' rel='nofollow'>Run Code</a>
|
||||
 <a href='https://repl.it/CJZY/0' target='_blank' rel='nofollow'>Run Code</a>
|
||||
|
||||
See here that the class `ElectricCar` inherits or `extends` the public methods from `Car` class, as well as has its own methods and properties. Cool way to pass on information!
|
||||
|
||||
|
Reference in New Issue
Block a user