Design a class to represent a bank account create a class


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 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.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Design a class to represent a bank account create a class
Reference No:- TGS01122970

Now Priced at $70 (50% Discount)

Recommended (98%)

Rated (4.3/5)