Construct related objects for a given problem.


Teaching Note:

In examinations problems will require the students to construct definitions for no more than three objects and to explain their relationships to each other and to any additional classes defined by the examiners.

LINK Connecting computational thinking and program design.

AIM 4 Applying thinking and algorithmic skills to resolve problems.


Sample Question:


JSR Notes:

Not a big deal here. See the "Bus" example of the sample Paper 2 exam.

The example back on D.1.4 has four classes defined. And if you were asked to construct objects for ISP as an employer, for example, you'd likely have no problem coming up with how to divide into different classes (from which objects can be made) - Teacher, TeacherAssistant, etc., and suggest various attributes and actions which should be associated with each, as started in D.1.5.

And lots of other examples done in class - a couple seen on D.1.6 notes.


But you would have to do a heirarchy and the connections on your own, given a certain new situation, for example: (and as the Teaching Note notes, no more than 3 classes*)

Problem: Managing a Soccer Team - think what classes could you have, potentially with "is a", or "has a" or "uses" relationships.

Problem: Keeping track of High School student attendance- "

Problem: Managing the accounts of the customers of a bank - "

or any other complex entity which could be defined by objects that make it up


* in fact, limiting the system to 3 classes makes the exercise trickier than it otherwise would be...