Answer:
We need to do some operation on accounts so we will create a class named Account with properties 'interestRate' and 'type'. The class has a function 'getInterest' to calculate interest for a deposit in that account.
Explanation:
Hope it helps.