Design a class to represent a bank account. Include the following members: 
Data Members 
->Name of the depositor 
->Account Number 
->Type of Account 
->Balance amount in the account 

->To assign initial values(with method and not with constructor) 
->To deposit an amount 
(Include computation of Interest for saving a/c) 
->To withdraw an amount after checking balance 
(check minimum balance if necessary for current account impose penalty) 
->To display the name and balance 

Create a class Account that stores customer name, account number and type of account. From 
this derive the classes Curr-acct and Sav-acct to make them more specific to their requirements. Include the necessary methods in order to achieve the above mention task. 

    • Posted: 5 years ago
    practice bank account in java to deposit,withdraw and check balances

    Purchase the answer to view it

    Save time and money!
    Our teachers already did such homework, use it as a reference!