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 :(
2 Respuestas
+ 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.
+ 1
From a book but many things of the material are wrong :/ and my cellphone corrector don’t help. Thanks for the answer