class BankAccount {
BankAccount BankAccount = new BankAccount();
BankAccount toBankAccount = new BankAccount();
}
private String name;
private Integer accountNumber;
private Integer pin;
public Double balance;
public Double amount;
private double transferFunds(Double amount,BankAccount toBankAccount) {
return (this.balance - amount) && toBankAccount.balance + amount;
}
Why can't I add to the 'toBankAccount' balance here ? help me rewrite this method return properly, I've been stuck on this for a while now.