PrepAway - Latest Free Exam Questions & Answers

Which design should you choose?

You create Web-based client applications. You are creating a class library. The class library will be used to read and write data in the following three tables that are located in the Northwind database: CustomersOrdersOrderDetails The structure of the three tables is shown in the following diagram. (Refer to the Exhibit.) You need to ensure that the interfaces of the three classes accurately represent the connections between the tables in the database. Which design should you choose?

PrepAway - Latest Free Exam Questions & Answers

A.
The Customer class contains a method called CreateOrder. The Order class contains a method called AddDetail.

B.
The Customer class contains a collection of orders. The Order class contains a collection of OrderDetails tables.

C.
The Customer class contains a property called Orders that returns an array of OrderIDs. The Order class contains a property called Details that returns an array of Details.

D.
Create three classes: Customer, Order, and OrderDetail.


Leave a Reply