Computer Science, asked by karankaran4302, 6 months ago

Create a class with the following member variables. Customer name, account number and account type. Create the derived classes with following member variables.
for current account information Balance, Deposit and withdrawal amount
for savings account information Balance and Deposit amount.

Write a member function to get the Deposit and withdrawal amount and to update the balance information for current account. Write a member function to get the Deposit amount and to update the balance information for saving account. Write a member function to Display the balance information for respective account type.

Answers

Answered by devlekarsakshi123
0

Using the Account class as a base class, write two derived classes called Savingsaccountand Currentaccount. A Savingsaccount object, in addition to the attributes of an Account object, should have an interest variable and a method which adds interest to the account. A Currentaccount object, in addition to the attributes of an Account object, should have an overdraft limit variable. Ensure that you have overridden methods of the Account class as necessary in both derived classes...

HOPE THAT ITS USEFUL....

Similar questions