Which class diagram should you design?

You are an enterprise application developer. You develop a banking application by using Microsoft Visual Studio .NET 2005 and .NET Framework 2.0. During the design phase of the application, you identify three entities named Bank, BankAccount, and Person. You need to design a class diagram so that the entities meet the following requirements:
* A BankAccount entity must belong to only one Bank entity.
* A Bank entity must contain several BankAccount entities.
* A BankAccount entity must have one or more Person entities as account holders.
* A Person entity must exist independent of BankAccount entities.

Which class diagram should you design?

You are an enterprise application developer. You develop a banking application by using Microsoft Visual Studio .NET 2005 and .NET Framework 2.0. During the design phase of the application, you identify three entities named Bank, BankAccount, and Person. You need to design a class diagram so that the entities meet the following requirements:
* A BankAccount entity must belong to only one Bank entity.
* A Bank entity must contain several BankAccount entities.
* A BankAccount entity must have one or more Person entities as account holders.
* A Person entity must exist independent of BankAccount entities.

Which class diagram should you design?

A.

B.

C.

D.



Leave a Reply 0

Your email address will not be published. Required fields are marked *