For the type heirachy defined below, Choose the most correct statement below for the output?
trait A{ def a = 1 } trait X extends A{ override def a = { println("X") super.a } } trait Y extends A{ override def a = { println("Y") super.a } } For the expression val xy = new AnyRef with X with Y xy.a
Correct Answer: Prints Y then X
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Scala MCQ Questions