Question
create a class Name : Bank Account Properties: -Balance (double), +account holder name(string), +type(string) Function: Have a 3 constructor for this class ( overload) +
create a class
Name : Bank Account
Properties: -Balance (double), +account holder name(string), +type(string)
Function:
Have a 3 constructor for this class ( overload)
+ Widthraw(double amount) : void
+deposite(double amount) : void
+toString() --> to be called and show the information (override)
Create 3 object in your main from your class and show the information...
** Make sure when the you widthraw from the account the balance is sufficient!
if there is not enough money in the account the user cannot withdraw and you show the message
"Insufficient fund"
programming language:C#
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