nerdexam
Microsoft

MB6-890 · Question #84

You have the following X++ classes: class ProductDimensionAttribute; { string attribute void getAttribute() { return "Color"; } } Class ColorDiraensionAttnibute extends ProductDimensionAttribute {…

The correct answer is C. Color Color. See the full explanation below for the reasoning.

Question

You have the following X++ classes:

class ProductDimensionAttribute; { string attribute void getAttribute() { return "Color"; } } Class ColorDiraensionAttnibute extends ProductDimensionAttribute { void getAttribute( ) { return "Green"; } } You also have a runnable class which has the following code:

ProductDimensionAttribute dimension; ColorDimensionAttribute color = new ColorDimensionAttribute(); info(color.getAttnibute()); dimension = color; inf o(dimension . getAttribute()) ; Which output is correct if you run the above code that is part of the runnable class?

Options

  • AGreen Color
  • BGreen Green
  • CColor Color
  • DColor Green

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    8% (2)
  • C
    83% (20)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full MB6-890 Practice