+ 2

Inheritence Problem

Please Help me I have a Supperclass and subclass. When I try print in the main write: "An Error occured" but why? https://code.sololearn.com/crZn1shU7K8X/#java Thank you

28th Mar 2018, 8:52 PM
Erik Horvath
Erik Horvath - avatar
3 Réponses
+ 1
I moved the code to Eclipse and it works fine must be something with Sololearn
28th Mar 2018, 9:07 PM
TurtleShell
TurtleShell - avatar
0
Thank you
28th Mar 2018, 9:16 PM
Erik Horvath
Erik Horvath - avatar
0
@Erik Horvath actually I'm wrong you just forgot a curly bracket at line 40. When I copied and pasted the code I thought I copied it wrong so I added in the curly bracket, sorry!
28th Mar 2018, 9:23 PM
TurtleShell
TurtleShell - avatar