Some design problems there. You have a Conta class with cliente as a field. That is dubious. A Conta (account) does not have a cliente. A Cliente has a Conta. I think you ought to remove the cliente field from the Conta class.
You should have a conta field in the Cliente class, however. You also have given your methods inappropriate names. a method called setNomeCliente ought to look like this
If you are "set"ting a field, then there ought to be a field with a corresponding name. Your present setNomeCliente method should have a different indentifier, maybe setNomeFromKeyboard.
Your Depositar method has two problems.
1: It should be called depositar. Not D but d.2: You are adding a double to an int. This cannot be compiled as it stands.I would change that method to this
Your Saca method has similar problems. You should also consider this sort of problem: The
Conta object has a
saldo of 1000. You try this method call:
miConta.saca(2000); You need to provide if blocks for whether the
quantitade is > 0 or >
saldo. I suggest, maybe, you
return quantitade if it is in the right range; if it is <= 0 or >
saldo, then
return 0. You can use it like this.
I hope this give you some idea how to proceed. Please ask again if you have more problems.