nerdexam
Microsoft

MB6-704 · Question #40

MB6-704 Question #40: Real Exam Question with Answer & Explanation

Sign in or unlock MB6-704 to reveal the answer and full explanation for question #40. The question stem and answer options stay visible for context.

Question

You have the following X++ code: (Line numbers are included for reference only.) Methodl and method2 are in Classl. Method3 is in Class2. You need to ensure that you can change the value of vanable2 at line 21. What should you do first?

Exhibit

MB6-704 question #40 exhibit

Options

  • ACreate a protected access or method for variable2.
  • BCreate a public accessor method for vanable2.
  • CDeclare variable2 as a public variable.
  • DDeclare variable2 as a protected variable.

Unlock MB6-704 to see the answer

You've previewed enough free MB6-704 questions. Unlock MB6-704 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full MB6-704 Practice