Exam prep sheet Exercise 7

Hello,

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?

2 Likes

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

E.fun(C)

Yes, this appears to be a typo.

1 Like

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