Microsoft
MB6-894 · Question #32
You create a new class named NewClass1 in a model. NewClass1 manipulates the CustTable table in the protected method modifyCustTable. NewClass1 has the following code: class NewClass1 { public…
The correct answer is D. class NewClass2 extends NewClass1. See the full explanation below for the reasoning.
Question
You create a new class named NewClass1 in a model. NewClass1 manipulates the CustTable table in the protected method modifyCustTable. NewClass1 has the following code:
class NewClass1 { public static MainClass1 construct() { return new MainClass1(); } protected void modifyCustTable() { ... } } In the same model as NewClass1, you create a new class named NewClass2. You want to run the code in the modifyCustTable method from the callModifyCustTable method in NewClass2. What is a correct example of calling the modifyCustTable method from NewClass2?
Options
- A{
- Bclass NewClass2
- Cclass NewClass2 extends NewClass1
- Dclass NewClass2 extends NewClass1
How the community answered
(33 responses)- A12% (4)
- B3% (1)
- C3% (1)
- D82% (27)
Community Discussion
No community discussion yet for this question.