Question: Question#3: A client can have a bank account. The client can withdraw or deposit money into the bank account. There are two types of bank
Question#3: A client can have a bank account. The client can withdraw or deposit money into the bank account. There are two types of bank account: saving account and checking account. The way money can be withdrawn or deposited depends on the type of the bank account.
- Draw a class diagram corresponding to the above situation. (2 points)
- Draw a sequence diagram illustrating a call by the client to withdraw money from the bank account. The withdraw method shall only allow to withdraw if the account is not empty. (2 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
