3.
|
CheckingAccount has a responsibility to print certain reports for the user. These reports require the bank's name and address on them. CheckingAccount will collaborate with the Bank object to get this information. Which one of the following statements best describes a relationship needed by this collaboration? Please select the best answer.
|
|
A. |
The checking account should know its bank, so it can delegate the work.
|
|
B. |
The CheckingAccount class should be part of the Bank class.
|
|
C. |
There should be a global Bank variable all CheckingAccount objects can reach.
|
|
D. |
The Bank class should be part of the CheckingAccount class.
|