A class diagram models the static view of a system. It comprises of the classes, interfaces, and collaborations of a system; and the relationships between them.
Let us consider a simplified Banking System.
You are to build a Banking system. Bank can have multiple accounts. An account may be either a savings account or a current account. A customer may open both a savings account and a current account. However, a customer must not have more than one savings account or current account.
The following figure shows the corresponding class diagram.
You need to do the following.
1)Write java code to create all classes.
2)Name of the bank is TellsWells Bank.
3)Implement the BankReports interface in Account and also override the method for
each specific back account type
4)Add the following as customers to the Bank(If you like you can hard code)
NameAddressChecking Savings
Waylon Dalton351 Surrey Circle Brooklyn NY 11209$1356.00$599.00
Justine Henders9858 Glen Eagles Ave. NY 11237$156.00$3599.00
Abdullah Lang9927 Woodside Lane NY 11213$1156.00NA
Marcus Cruzing71 Depot Lane Brooklyn NY 11212NA$99.00
Thalia Cobbing7233 NE. Summer St. NY 11235$2016.00$35099.00
Mathias Little87 Deerfield Ave. S. Valley NY 10977$3599.00NA
Eddie Randolph718 East Howard Rd. NY 10977 $7146.00$9449.00
Angela Walker9768 Fieldstone Rd. Bronx, NY 10456 $156.00$3599.00
Lia Shelton226 High Noon Ave. Bronx, NY 10463$31356.00$353399.00
Hadassah Hartman642 Windfall Drive New York NY 11370 $21256.00$359922.00
Joanna Shaffer99 Heritage St. New York, NY 10040$16.00NA
Jonathon Sheppard7 Cactus Ave. New York, NY 12550$56.00$99.00
IMPORTANT
1)In your Main method of your application, print on the screen all the customers
with their relative accountdetails. Then --
2)Remove the customer account from the bank for “Thalia Cobbing”
3)Now print again on the screen all the customers with their relative account details.
4)Also write some test cases for all classes using JUnit