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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
