Which class diagram should you use?

You are an enterprise application developer. You develop an application by using the Microsoft Visual Studio .NET 2005 and the .NET Framework 2.0. The application will be used by financial institutions. Financial institutions can operate checking accounts, savings accounts, and credit cards to customers. Customers can use Automated Teller Machine (ATMs) to manage their accounts.
You need to design a class diagram for the application to meet the following requirements:
* The Checking class must be a type of the BankAccount class.
* The Savings class must be a type of BankAccount class.
* The BankAccount class can be a type of the ATM interface.
* The CreditCard class can be a type of the ATM interface.

Which class diagram should you use?

You are an enterprise application developer. You develop an application by using the Microsoft Visual Studio .NET 2005 and the .NET Framework 2.0. The application will be used by financial institutions. Financial institutions can operate checking accounts, savings accounts, and credit cards to customers. Customers can use Automated Teller Machine (ATMs) to manage their accounts.
You need to design a class diagram for the application to meet the following requirements:
* The Checking class must be a type of the BankAccount class.
* The Savings class must be a type of BankAccount class.
* The BankAccount class can be a type of the ATM interface.
* The CreditCard class can be a type of the ATM interface.

Which class diagram should you use?

A.

B.

C.

D.



Leave a Reply 0

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