AQA 7517 4.1.2.3: Object-oriented programming
The free BugBot lessons that teach this point, a robot to try it on, and the past-paper questions that test it.
Lessons that teach it
- A1.7 Classes and objects Programming techniques and object-oriented programming
Classes, objects, attributes, methods and constructors; encapsulation, access specifiers, getters and setters, and class diagrams. - A1.8 Inheritance, polymorphism and overriding Programming techniques and object-oriented programming
Subclasses and super, overriding, polymorphism, and abstract, virtual and static methods, with robot behaviours as subclasses. - A1.9 Aggregation, composition and class diagrams Programming techniques and object-oriented programming
Has-a relationships, drawing them on class diagrams, and the design principles that favour composition over inheritance. - A1.10 Project: the behaviour controller Programming techniques and object-oriented programming
Get past a wall to the dock with prioritised behaviour classes, a controller that aggregates them, and an exception to finish.
Try it on a robot
The task from A1.7 Classes and objects, running here. Change the program and press Run.
The specification is AQA's own document; this page says which of our lessons teach point 4.1.2.3 and is not endorsed by the board.