0

Can you check my code? I’m suffering with poo java

https://code.sololearn.com/c4nb02A1N61p/?ref=app I don’t know why I am wrong :(

17th Aug 2022, 12:17 AM
MarĂ­a Maldonado
2 Answers
+ 3
In Java Constructor should be like this: public Cuenta (String cuenta, String ownerCuenta, int nip, double montoActual, double montoApertura) { } From where you are learning java? You have many mistakes and in Java constructor is not defined like that. 'If' should be 'if' 'This' should be 'this'. import should be always on top. you have defined constructor of class 'Cuenta' in child classes also. I think it is not necesary.
17th Aug 2022, 12:27 AM
A͢J
A͢J - avatar
+ 1
From a book but many things of the material are wrong :/ and my cellphone corrector don’t help. Thanks for the answer
17th Aug 2022, 12:40 AM
MarĂ­a Maldonado