public void withdraw(double amount)balance is the balance of the object to the left of the dot:
{
double newBalance = balance - amount;
balance = newBalance;
}
momsSavings.withdraw(500)means
double newBalance = momsSavings.balance - amount;
momsSavings.balance = newBalance;