nerdexam
Microsoft

MB-500 · Question #109

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. There is issue with the class name suffix "_myExtension", extension class has to end with "_Extension". Compiler would give you error with this code.

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 #109 exhibit

Options

  • AYes
  • BNo

How the community answered

(45 responses)
  • A
    18% (8)
  • B
    82% (37)

Explanation

There is issue with the class name suffix "_myExtension", extension class has to end with "_Extension". Compiler would give you error with this code.

Topics

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

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice