assignment 889

solomon northup
April 12, 2021
Dissonance and Attitudes
April 12, 2021

assignment 889

Practical

14) BankAccount Class Definition and Creation:

Design and develop a class for called BankAccount1, which has some common characteristics in typical bank account. Assume that it is normal savings account.

  • Properties/Attributes/Fields/instance variables:
  • o Account Number (String)

    o Account Holder Name (String)

    o Balance (Double)

    o Account State (String) (for later use only)

  • Constructor
  • o Takes all above fields as parameter

  • Methods:
  • o Accessor

    o Mutator

    o Service methods :

    ▪ Withdraw (double amount) – cannot withdraw more than balance

    ▪ Deposit(double amount)

    ▪ TransferTo (BankAccount a, double amount)

    o Support methods (if required)

    a. Create a driver program that tests the above program.

    The driver should create an account with given properties and test the working.

    What concepts have we learnt in Question One?

    ➢ Class design

    ➢ Programming classes in Java.

     
    Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
    Use Discount Code "Newclient" for a 15% Discount!

    NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

    Buy Custom Nursing Papers