public void deposit(double amount)
{
balance += amount;
}
This is what I'm calling in another class. I want to be able to deposit 100$ into this account.
Account acct1;
acct1 = new Account(500, "Joe", 1112);
What would I need to do in order to deposit into this account? I've tried different variations of this (below), but I'm confused as to what to do.
initBal = new deposit(100);
Help?