OOP in OCR pseudocode – OCR A Level Computer Science lesson (H446)
Students learn to write and interpret object-oriented code in OCR exam pseudocode, using public, private, inherits and super correctly.
Lesson 8 of 13 in unit 12.6 Object-Oriented Programming, taught in Year 12, Spring 1. It answers one big question: How do we write and read OOP in OCR pseudocode?
By the end, students can write and interpret object-oriented code in OCR exam pseudocode, using public, private, inherits and super correctly.
- The Build (the main task)
- Write, in OCR pseudocode, a class MemberTicket that inherits from Fernhollow's Ticket class, adds a private memberNumber attribute, calls super.new in its constructor and has a public getter (7 marks).
- Support version
- A side-by-side card of Python and OCR pseudocode for every OOP feature, with the MemberTicket class header and endclass given.
- Challenge
- Interpret a given pseudocode class with three deliberate errors: give each line number and its corrected line.
- Real-world link
- Fernhollow's annual members get a ticket with a member number; the exam board's pseudocode is the language of the specification.
- Key words
- Subclass, Public and Interpret, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Attributes should be public so that other classes can use them”; “Python syntax is acceptable in pseudocode answers (def __init__, class MemberTicket(Ticket))”.
- OCR H446 specification
- 1.2.4 (e).
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 can do it all on paper.
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 allStudents learn to describe the characteristics of procedural and object-oriented languages and explain why different paradigms exist.
Free sample lessonStudents learn to explain the difference between a class and an object, and create several objects from a given class.
Students learn to write a constructor that sets attributes from parameters, and instantiate objects correctly in Python and OCR pseudocode.
Written for the specifications named. Not endorsed by or affiliated with any exam board.