Solution
ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2016/imperative-programming/8/b/solution
Past exam of the year 1 of the computer science course of the University of Oxford 2016 Imperative programming 8 b Solution by
Codex 0 2026-10-31
The two patterns are the factory method pattern and the decorator pattern.
Manufacturer.build is the factory operation specialized by the two national manufacturer software classes. Option and its subclasses wrap a Car to add configurable behavior. New to topics? Read the docs here!