- 1

Can somebody help me with this error in Java?

I am new to Java Now learning inheritance but got a error. Below is a Code in Online Java IDE: https://www.jdoodle.com/a/3Q9f

19th Oct 2021, 2:30 AM
Coding San
Coding San - avatar
3 Réponses
+ 2
Code doesn't show up in the link. Better to post it in code playground and share it via that.
19th Oct 2021, 2:44 AM
Nikhil
Nikhil - avatar
+ 2
SavingAccount requires constructor because Account has one with parameters class SavingAccount extends Account { public SavingAccount( String acc, String n, String add, String p ) { super(acc, n, add, p); } - there are 2x typos balence instead balance - deposit() can't see balance because is private, but you can change declaration to protected long balance; - rename getname() to expected getName()
19th Oct 2021, 4:26 AM
zemiak