Develop a polymorphic banking app using the Account hierarchy. Create an array of Account references to Savings-Account and Checking Account objects. For each Account in the array, allow the user to specify an amount of money to withdraw from the Account using method Debit and an amount of money to deposit into the Account using method Credit. As you process each Account, determine its type. If an Account is a Savings-Account, calculate the amount of interest owed to the Account using method Calculate Interest, then add the interest to the account balance using method Credit. After processing an Account, display the updated account balance obtained by using base class property Balance.rn
Enjoy 24/7 customer support for any queries or concerns you have.
Phone: +1 213 3772458
Email: support@gradeessays.com