previous
|
start
|
next
Example: Add Interest
Define bank account object
public class TimerTest
{
public static void main(String[] args)
{
final BankAccount account = new BankAccount(1000);
class InterestAdder implements ActionListener { . . . }
}
private static final double RATE = 5;
}
final
modifier of
account
necessary so inner class code can access it
previous
|
start
|
next