Magtanong at makakuha ng maliwanag na mga sagot sa IDNStudy.com. Tuklasin ang libu-libong mga sagot na na-verify ng mga eksperto at hanapin ang mga solusyong kailangan mo, anuman ang paksa.
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.