written 7.8 years ago by | • modified 7.8 years ago |
The saving account provides compound interest and withdrawal facilities but no cheque book facility. The current account provides cheque book facility but no interest. Current account holders should also maintain a minimum balance and if the balance falls below this level, a service charge is imposed. - Class account stores customer name, account number and the type of account. - Include member functions:- - - Accept deposit from a customer and update the balance - Display the balance - Compute and deposit interest - Permit withdrawal and update balance - Check for minimum balance, impose penalty and update the balance
Draw Class diagram for above scenario. . -
(b) For above problem statement, implement class account, current account and saving account. - (c) Explain association and aggregation with suitable example. - Marks: 4 M, 8 M
Year: Dec 2013