Examlex

Solved

Why Is the Following Code, Which Assumes ChoiceQuestion Is a Subclass

question 38

Multiple Choice

Why is the following code, which assumes ChoiceQuestion is a subclass of Question, considered poor strategy? Why is the following code, which assumes ChoiceQuestion is a subclass of Question, considered poor strategy?    A) Question should be the subclass, not the other way around. B) instanceof is not an operator but rather a method. C) instanceof should not be used for type tests that can be solved by using polymorphism. D) the instanceof reserved word should only be used in a class constructor.


Definitions:

Purchases

The acquisition of goods or services by a company in exchange for money, which are either used in the process of production or sold to customers.

Total Direct Materials

The sum cost of all raw materials that are directly traceable to the manufacturing of a product.

Raw Materials Used

The total value of all raw materials employed in the manufacturing process to produce finished goods during a specific accounting period.

Manufacturing Overhead

All manufacturing costs that are not directly involved in the production of a product, including indirect materials, indirect labor, and other indirect costs.

Related Questions