Question 3(a) 2015 · October-November · Paper 41 · 7 marks
Reveal official mark-scheme answer

Official answer for Question 3
Part (a)
Part (a)
Question 41
Show text version of question
Question 3
Part (a)
Question 3
A lending library stocks two types of item for loan: books and CDs.
All stock items have a title, the date the item was acquired and whether the item is currently out on loan.
Books have an author and ISBN. CDs have an artist and play time in minutes.
The library needs a program to process data about the stock items. The program will use an object-oriented programming language.
Part (a)
Complete the class diagram showing the appropriate properties and methods.
StockItem
Title: STRING
......................................................................
......................................................................
......................................................................
ShowTitle()
......................................................................
......................................................................
......................................................................
Book CD
Author: STRING ......................................................................
...................................................................... ......................................................................
...................................................................... ......................................................................
...................................................................... ......................................................................
Constructor() ......................................................................
ShowAuthor() ......................................................................
...................................................................... ......................................................................
...................................................................... ......................................................................
Question 7
Why this question appears here
98% assigned-topic match · Further programming › Programming paradigms
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_w15_qp_41.pdf
