Quelpr

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

More practice: the rest of this paper · more Implementation, Testing, and Maintenance questions · all CAPE Computer Science Unit 2 past papers