9618/32/M/J/23 question 4: worked solution (May/June 2023, paper 32)
Show as plain textHide plain text
Cambridge A2 Level Computer Science 9618 · 20.1 Programming Paradigms Worked solution from the Further Programming Paper 3 Advanced Theory booklet, Part 1 of 2. Q10 9618/32/M/J/23 original Q4 Structured · 4 marks Worked solution Match each OOP term to its description: OOP term Description Encapsulation the process of putting data and methods together as a single unit Getters methods used to return the value of a property Polymorphism allows methods to be redefined for derived classes Setters methods used to update the value of a property Encapsulation → putting data and methods together as a single unit [1] Getters → methods used to return the value of a property [1] Polymorphism → allows methods to be redefined for derived classes [1] Setters → methods used to update the value of a property [1] The description about a new class inheriting from a parent class is about inheritance, so it is not used. KEY IDEA Getters read, setters write, encapsulation bundles data with methods, and polymorphism lets derived classes redefine methods. TOTAL 4 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.