Microsoft
MB6-704 · Question #77
MB6-704 Question #77: Real Exam Question with Answer & Explanation
The correct answer is A. Veriable3 - classlObj .methodl();. The variable from the other class is only accessible through the method method1.
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 the value of vanable3 to the value of variablel from classlObj. Which code segment should you insert at line 22?
Exhibit
Options
- AVeriable3 - classlObj .methodl();
- BVariable3 - new Classl{) .variablel;
- CVariable3 = classlObj.variablel;
- DVariable^ - this.variablel;
Explanation
The variable from the other class is only accessible through the method method1.
Community Discussion
No community discussion yet for this question.
