Question: JAVA Create a BankAccount class that models a typical bank account where you deposit and withdraw money. To keep things siniple, assuine this bank accocint
Create a BankAccount class that models a typical bank account where you deposit and withdraw money. To keep things siniple, assuine this bank accocint deak only with integer amounts: - Provide a constructor that allow your to create and initialize the lank account. - Provide a tostring method that displays account information. - Provide a getBalance method that returns the current balance. - Provide both withclraw and deposit methods. - Provide exception handling. - Create a BarikAccountException class. - Withdraw method must throw BarikAccountException for insutficient funde - Degosit method must throw BanicAccountexception for deposit amount less than zero (carinot allow negative deposit). - Create an application called Bank that demonstrates that the BankAccount class works correctly. Example Output: Enter initial funds: 300 . Welcome to ACME BANK **. 1 - Check account balance. 2- Make withdraw. 3 . Make Diposit 4 - Exit Selection: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
