Lecture 15
4
class BankAccount
•What all BankAccounts share
–fields balance, transactionCount, issuingBank
–methods withdraw, deposit, incrementBalance, countTransaction, getters and setters for fields
•Changes from BankAccount.java (4):
–abstract class (16): never  new BankAccount()
–protected constructor (33): invoked by children only
–abstract method newMonth: (185) what each kind of BankAccount does on first day of month,         implemented in each child class, called from Bank’s report and newMonth methods