Lecture 14
6
Design problem
•Bigbank and Littlebank are similar but different
•Both have fields
–name, balance, transaction count (same meaning)
–accountList (different meanings)
•Both have methods
–visit, processTransaction, getBalance, … (same code)
–whichAccount, report (different code)
•Can we write big and little Bank classes              without copying code?
•