The withdrawal thread
class ATM extends Thread {
Savings_Account account;
ATM(Savings_Account savings) {
account = savings; }
public void run () {
account.withdrawal(300);
}
}
Previous slide
Next slide
Back to first slide
View graphic version