11.A program to demonstrate how to declare, define and call a constructor member function in a nested class. 12.A program to demonstrate how to declare, define and call a constructor member function in...





11.A program to demonstrate how to declare, define and call a constructor member function in a nested class.



12.A program to demonstrate how to declare, define and call a constructor member function in a nested class. The firing order of the nested class constructor is illustrated in the following program.



13.A program to simulate a simple banking system in which the initial balance and the rate of interest are read from the keyboard and these values are initialised using the constructor member function. The destructor member function is defined in this program to destroy the class objects created using the constructor member function. The program consists of the following methods:


1.To initialise the balance and the rate of interest using the constructor member function.


2.To make a deposit.


3.To withdraw an amount from the balance.


4.To find the compound interest based on the rate of interest.


5.To know the balance amount.


6.To display the menu options.


7.To destroy the object of class, the destructor member function is defined.










May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here