PrepAway - Latest Free Exam Questions & Answers

What should you include in the Product class?

You create Web-based client applications. You are creating a class library that will be used by an e-commerce Web-based application. The library has an abstract class that is named Product. The Product class serves as a base class for the other classes and provides a default ProductID property. Each class other than the base class represents a type of product that is sold by your company. There is a ProductID property and a GetProductDetails procedure for each product type.

You need to ensure that the application meets the following requirements:

The shopping cart in your Web-based application processes all product types in the same manner.
Each class retrieves its data from a different source.
The GetProductDetails procedure retrieves the data from the appropriate source for the product type.

What should you include in the Product class?

PrepAway - Latest Free Exam Questions & Answers

A.
an abstract ProductID property and a virtual GetProductDetails procedure

B.
a virtual ProductID property and a virtual GetProductDetails procedure

C.
a virtual ProductID property and an abstract GetProductDetails procedure

D.
an abstract ProductID property and an abstract GetProductDetails procedure


Leave a Reply