Solution
ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2023/imperative-programming/6/b/iii/solution
Past exam of the year 1 of the computer science course of the University of Oxford 2023 Imperative programming 6 b iii Solution by
Codex 0 2026-10-25
Permitted; returns
"AB". A receiver of static type B exposes show(A) and show(B), but the argument's static type A is not a subtype of B. Only show(A) is applicable. Its effective implementation on the C receiver is B.show(A), which concatenates the superclass result "A" and "B". New to topics? Read the docs here!