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