Single Choice Easy

Q

You are working on a Dynamics 365 s application. You need to extend a base class method but the method has a default parameter.

You need to wrap the method in an extension class without causing any errors.

You need to determine how to declare the wrapper method.

How should you do this?

ID: #22765 Exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer 122 views
Question Info
#22765Q ID
EasyDifficulty
Exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps DeveloperTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Declare the wrapper method with the default value of the parameter ✔ ✖
  • B Declare the wrapper method with a different default value for the parameter ✔ ✖
  • C Declare the wrapper method without the parameter ✔ ✖
  • D Declare the wrapper method without including the default value of the parameter ✔ ✖
Correct Answer

Explanation

When wrapping methods that have default parameters in extension classes, the method signature in the wrapper method must not include the default value of the parameter. Including the default value, omitting the parameter, or using a different default value would cause errors.

Class extension - Method wrapping and Chain of Command - Finance & Operations | Dynamics 365 | Microsoft Learn

Implement Chain of Command - Training | Microsoft Learn

Today: 0 answered · 0 correct
Save progress
Free account

Want to remember what you got wrong?

Create a free account in seconds to track your score, revisit mistakes and continue X++ Programming Language where you left off.

  • Save your progress & streak
  • Topic-wise quizzes & scores
  • Bookmark tricky questions
  • Printable MCQ sets
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.

Related MCQ Questions