Single lesson · Written for OCR A Level (H446)

OOP project: building a small system 1 – OCR A Level Computer Science lesson (H446)

Students learn to build a small system of classes that work together, iterating through code, test and fix cycles.

Also in a bundle Object-Oriented Programming – OCR A Level Computer Science lessons (H446) 13 lessons for £45 · save 13% on buying separately

Lesson 11 of 13 in unit 12.6 Object-Oriented Programming, taught in Year 12, Spring 1. It answers one big question: How do we turn a design into a working set of classes?

By the end, students can build a small system of classes that work together, iterating through code, test and fix cycles.

The Build (the main task)
Write the first version of Fernhollow's booking system: a Ticket class and a Booking class whose addTicket() method stores Ticket objects in a list and whose total() method iterates over them to return the cost (8 marks).
Support version
The Ticket class and Booking's constructor given; students write addTicket() and total() with a loop template.
Challenge
Add a method that returns how many tickets of a given type are in the booking.
Real-world link
Families book several tickets at once on Fernhollow's website, and the booking must show the right total.
Key words
Class, Method and Iterate, each with a definition, an icon and a common mix-up on the key vocabulary slide.
Misconceptions it tackles
“One large class is simpler than several small classes”; “Adding an object to a list stores a copy of it”.
OCR H446 specification
1.2.4 (e); 2.2.1 (f) (programming techniques: using object-oriented techniques when writing programs).

Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.

Students need computers for the main task.

Also sold in the Object-Oriented Programming unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.

An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.

What's included

  • Slide deck (PowerPoint)
  • Lesson plan (Word)
  • Worksheet (Word)
  • Support worksheet with scaffolds (Word)
  • Single-teacher licence: use and adapt it with your own classes

More for A Level Computer Science

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.