Question
C#!! Create a BankAccount class that can be used to maintain a bank account balance. Include appropriate constructors, properties, and methods to enable the account
C#!!
Create a BankAccount class that can be used to maintain a bank account balance. Include appropriate constructors, properties, and methods to enable the account to be originally created and for amounts to be deposited and withdrawn for the account. The GUI can be simply buttons for deposit, withdrawal and account balance, and a textbox for display and entry. Write the following exception classes:
NegativeBalanceException class thrown whenever a balance is calculated to go negative, which is not acceptable.
NegativeDepositException class thrown whenever a negative deposit amount is entered.
TooLargeException thrown whenever a deposit or withdrawal is more than $1,000.00.
Write an application class and thoroughly test the exceptions.
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