Microsoft
MB6-704 · Question #77
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…
The correct answer is A. Veriable3 - classlObj .methodl(). The variable from the other class is only accessible through the method method1.
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 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;
How the community answered
(39 responses)- A77% (30)
- B3% (1)
- C13% (5)
- D8% (3)
Explanation
The variable from the other class is only accessible through the method method1.
Topics
#class access#method return#variable access#X++ OOP
Community Discussion
No community discussion yet for this question.
