Question: Create a class Account with data members: AccNo,name,amount b)Create a method insert for initialization, c)create a method deposit : deposit(double amt) d)another method withdraw: withdraw(double

Create a class "Account" with data members: AccNo,name,amount
b)Create a method insert for initialization, 
c)create a method "deposit" : deposit(double amt)
d)another method "withdraw": withdraw(double amt)
e)In case the amount is less than amt to withdraw-> insufficient balance
f)Otherwise you should be able to withdraw and money must be deducted from the amount
g)Another method checkbalance() to check the remaining amount
h)display() method to display the full information about the account
 */

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!