Aa

Text size

?

Map / Classes / 10

⌨️ Write

A bank account

Finish BankAccount: deposit adds and returns the new balance; withdraw takes money out only if there is enough and returns whether it did; toString returns "Balance: " and the balance.

  • class
  • private
  • constructor
  • toString