About the c program to create an inheritance hierarchy


According to the given Problem statement the program contains three classes namely,

1. BankAccount: Superclass which has a protected member called Abal for Account balance.

It defines a parameterized constructor which takes initial balance and 4 public functions called Deposit and Withdraw which are of type Boolean, getBalance to know the balance which is of type double and a function to assign the amount.

2. SavingsAccount : It is the sub class of BankAccountwhich has a protected member ineterst_rate and 1 constructor which takes 2 parameters and a function to calculate interest called as CalculateIneterest.

3. CheckingAccount: It is again a sublass of BankAccount that means it derives the properties from it superclass BankAccount. It uses the method Deposit ans Withdraw to charge the fee as per the input.

This paper is about the C++ program to create an inheritance hierarchy using banking system.

It is used to represent customer's bank account where all customers can deposit or withdraw the money from their respective accounts. The super class called BankAccount is used to describe the methods Deposit and Withdraw.

This paper also specifies two types of account namely SavingsAccountwhich lets the user earn interest on the money they hold. On the other hand is the CheckingsAccount which charge a fee per transaction i.e on deposit and withdrawal.

Attachment:- Assignment.rar

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: About the c program to create an inheritance hierarchy
Reference No:- TGS02245831

Expected delivery within 24 Hours