previous | start | next

Designing the Public Interface of a Class: Methods

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

previous | start | next