CAPE Computer Science Unit 2 · 2006 · Paper 1 · Question 13
A Job object contains instance variables title, description, and salary, with methods setDescription(jobDescr) and increaseSalary(amount).
Write code in an object-oriented programming language of your choice defining the Job class, including an appropriate constructor.
The mark scheme is shown once you've answered.
Practise this question