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)- A4% (1)
- B8% (2)
- C83% (20)
- D4% (1)
Community Discussion
No community discussion yet for this question.