Why object-oriented programming is used
A way of writing programs that groups related data and the code that uses it into one unit called an object, so programs modelling real things are easier to organise than separate lists and functions.
Understanding Why object-oriented programming is used in ACARA Digital Technologies Years 9–10
What it does: A method inside a class uses self to change the object's own data, so the data and the code that uses it stay together. Parallel lists rely on matching positions. If you remove from one list but forget the others, the data for one person gets mixed up. Objects keep each student's data together. OOP suits programs that model real things. A Player object can hold its own health and score and know how to move or attack. Other styles of programming can still run games. Data (name) and behaviour (bark) are bundled in one unit. Two separate lists hold only data and are not linked.
Common mistakes: Parallel lists only work if the same index is used in both lists. names[1] is Liam but marks[2] is Mia's mark. It should be marks[1]. This easy mistake is one reason parallel lists are risky. Lists have no add() method, so this causes an AttributeError. Use marks.append(95). With parallel lists you must remember to update every list each time, or the data goes out of sync.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 629–680) and word search (Modules 629–707).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
object-oriented programmingFill in the Blanks
Spot the Error
Student with a class code? Join your class →