Exam prep sheet Exercise 7


i am just a bit confused by the solution to exercise 7.: Inheritance Hierarchy should ee.fun(cc) yield “E.fun(C)” as output? The solution states that “B.fun(C)” is the output, i think that this is a typo or am i completely wrong?


If you are unsure just copy the code into the IDE of your choice and run it. I get this from IntelliJ:


Yes, this appears to be a typo.

1 Like

The typo is now fixed and will soon be visible in the skript.