+ 2
Inheritance
Can someone please explain for me inheritance. I find it really easy to understand but hard to code it😔. https://code.sololearn.com/cYEqzERPbe2e/?ref=app https://code.sololearn.com/cYEqzERPbe2e/?ref=app
5 odpowiedzi
+ 2
There are two serious problem.in code:
- A java file have would have one public class (equals to filename) but you have declared either class like public... Remove "public" from Vehicle
- You defined a method which get string param, but you call without param (driver)
+ 2
👍👍👍
+ 1
KrOW thanks man
0
i have tried to code it up there 👆🏽 but its hard for me. Someone correct me. Using comments if necessary