nerdexam
Microsoft

MB-500 · Question #110

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might…

The correct answer is B. No. The example code doesn't decorate the class with [ExtensionOf].

Develop business logic

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You must extend the class SalesLineType and add a new method that returns the day of week for the system's current date as an integer value. You need to create a class that extends SalesLineType and adds the new method. Solution: You create the following code: Does the solution meet the goal?

Exhibit

MB-500 question #110 exhibit

Options

  • AYes
  • BNo

How the community answered

(32 responses)
  • A
    22% (7)
  • B
    78% (25)

Explanation

The example code doesn't decorate the class with [ExtensionOf].

Topics

#class extension#SalesLineType#X++ methods#date functions

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice