nerdexam
Microsoft

MB-500 · Question #135

You are a Dynamics 365 Finance developer. You need to create an extension class. Which action should you perform?

The correct answer is A. Mark the class as final. Extension classes are final classes that are adorned with the ExtensionOf attribute and that also have a name that has the _Extension suffix. Because the classes are instantiated by the runtime system, it's not meaningful to derive from the extension class. Therefore, the…

Design and develop AOT elements

Question

You are a Dynamics 365 Finance developer. You need to create an extension class. Which action should you perform?

Options

  • AMark the class as final.
  • BAdd the class buffer as the first parameter.
  • CAdd the suffix .extension to the file name.
  • DAdd the suffix _myextension to the file name.

How the community answered

(34 responses)
  • A
    88% (30)
  • B
    6% (2)
  • C
    3% (1)
  • D
    3% (1)

Explanation

Extension classes are final classes that are adorned with the ExtensionOf attribute and that also have a name that has the _Extension suffix. Because the classes are instantiated by the runtime system, it's not meaningful to derive from the extension class. Therefore, the extension class must be marked as final. https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/method-

Topics

#extension class#final keyword#X++ class syntax

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice