What does the following method do? Give an example of how you can cal lthe method.
public class BankAccount {
public void mystery(BankAccount that, double amount) {
this.balance = this.balance – amount;
that.balance = that.balance + amount; }
. . . // Other bank account methods }
What Does The Following Method Do? Give Example
Share
For instance, from another point in the program, you want to call that function. Simply type in mystery(mybankaccount, 63727.28);.