nerdexam
Microsoft

MB6-890 · Question #45

You have an X++ class that has the following code: You are writing a static method. You have an object of AssetBookCompareContract named assetBookCompareContractObj that is initialized within this…

The correct answer is D. info(assetBookCompareContractObj.parmFirstAssel:BookId()). See the full explanation below for the reasoning.

Question

You have an X++ class that has the following code:

You are writing a static method. You have an object of AssetBookCompareContract named assetBookCompareContractObj that is initialized within this method. You need to print the current value of the firstAssetBookld variable from the assetBookCompareContractObj object. Which piece of code should you use to achieve this goal?

Exhibit

MB6-890 question #45 exhibit

Options

  • AirvFo(assetBookCompareContractObj : :fIrstAssetBookld);
  • Binfo(assetBookCompareContractObj.f IrstAssetBookld);
  • Cinfo(assetBookCompareContractObj.panmFirstAssetBookId(""));
  • Dinfo(assetBookCompareContractObj.parmFirstAssel:BookId());

How the community answered

(35 responses)
  • A
    17% (6)
  • B
    9% (3)
  • C
    3% (1)
  • D
    71% (25)

Community Discussion

No community discussion yet for this question.

Full MB6-890 Practice