Question
Essentially creating a bank account management system: BankAccount Abstract Class contains the following constructors and functions: BankAccount(name, balance): a constructor that creates a new account
Essentially creating a bank account management system:
BankAccount Abstract Class contains the following constructors and functions: BankAccount(name, balance): a constructor that creates a new account with a name and starting balance.
getBalance(): a function that returns the balance of a specific account.
deposit(amount): abstract function to be implemented in both Checking and SavingAccount classes.
withdraw(amount): abstract function to be implemented in both Checking and SavingAccount classes.
messageTo Client (message): used to print a specific message to a client.
CheckingAccount Class: A class that implements the Abstract Class BankAccount and implements both deposit () and withdraw (). Deposit process in checking account has some constrains. Client can deposit any amount using checks and limit of $10,000.00 of cash deposit.
Client can withdraw any amount he wants.
SavingAccount Class: A class that inherits from the Class CheckingAccount and implements both deposit () and withdraw (). A client can deposit any amount using checks and a limit of $5,000.00 of cash deposit. A 5% interest should be calculated on the total.
Client can only withdraw 20% of the total balance in each session.
Main class: this class is to test your code. The test should be done by creating an array of type BankAccount that stores different bank accounts types for different clients and perform some processing by calling the implemented methods on these accounts.
PLEASE ANSWER THIS ASAP!!! I NEED HELP, I DON'T UNDERSTAND!!! THANK YOU!!!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started