Lecture 15
8
class SavingsAccount
•Behavior:
–5% annual interest credited monthly
–only three free transactions per month,                then each costs $1
•Design
–inherit from BankAccount
–write newMonth method to credit interest
–figure out how to keep track of number of transactions in a month, override countTransaction method to charge fee when appropriate
•Write it for hw7
–