Write a BankAccount class holding a balance in cents. The constructor takes a starting balance. deposit adds to it, withdraw takes away, and getBalance returns it. The balance may go negative.
class BankAccount { BankAccount(int start); void deposit(int amount); void withdraw(int amount); int getBalance(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.