Microsoft
MB6-704 · Question #88
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 set variablel for classlObj to a value of 5…
Sign in or unlock MB6-704 to reveal the answer and full explanation for question #88. The question stem and answer options stay visible for context.
Develop X++ code
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 set variablel for classlObj to a value of 5. Which code segment should you insert at line 21?
Exhibit
Options
- Aclassl0bj.methodl(5);
- Bnew Classl().methodl(5);
- CclasslObj.variable1= 5;
- Dthis.variablel =5:
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.
Topics
#X++ methods#variable access#class instances#encapsulation
