Logo 
Search:

Java Article

Submit Article
Comments on Program to display bank account
Category: Java (Homework Help)    Author: Easy Tutor

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

Methods
->To assign intial 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.




Please enter your Comment
  • Comment should be atleast 15 Characters.
  • Please put code inside [Code] your code [/Code].