Designing the Public Interface of a Class: Methods
Methods of BankAccount class:
- deposit
- withdraw
- getBalance
We want to support method calls such as the following:
harrysChecking.deposit(2000);
harrysChecking.withdraw(500);
System.out.println(harrysChecking.getBalance());