Skip to content
ExamSpine

Lesson 8.1 · Answer it

Class or object

4 marksYou mark it yourself against the marking points

A cinema has 120 seats. Its booking program has one class called Seat, which says that every seat has a row letter and a seat number. When the program starts, it makes one Seat object for each seat in the cinema.

(a) Distinguish between the class Seat and one Seat object, using the cinema as your example. [2]

(b) State how many times the program instantiates Seat when it starts. [1]

(c) The program changes the row letter of one Seat object. State what happens to the row letters of the other Seat objects. [1]

[4]