|
Assignment 3 |
Purpose: This assignment asks you to modify the BankAccount
class presented in class and to write a program to test objects of that class.
Procedure (Modifying the BankAccount class)
BankAccount class from the the file BankAccount.java and place into the
Assignment3 folder.BankAccount class by: getAccountNumber to return the account number (this
will be similar to the getBalance method);assessFee that takes as a parameter an amount to
subtract from the balance and then subtracts that from the balance;Procedure (Writing a program to test the new class definition)
TestBankAccount.java
file presented in class as a model, write a program that:BankAccount object (using the new operator);What to submit: Through COL, submit a zip file containing both the BankAccount.java
file and the TestBankAccount.java file.