Why programmers use object-oriented programming
Object-oriented programming: building a program from objects that bundle related data with the code that uses it, modelling real things and reusing a blueprint.
Understanding Why programmers use object-oriented programming in ACARA Digital Technologies Years 9–10
What it does: The Pet class models a real pet by keeping its data (name, energy) and its action (eat) together in one place. Both objects come from the same Pet class, so the code is written once and reused for each new pet. OOP models real things by grouping what a thing has (properties) and what it can do (methods). One class means you fix or improve the code in a single place instead of 50. OOP is mainly about organisation. Keeping related code together makes big programs easier to manage, not automatically faster. The class bundles the name property and the greet method inside one structure.
Common mistakes: The special setup method must be spelled constructor. A misspelling means it is just an ordinary method, so it never runs when a Dog is created. Correct line: constructor(name) {. Without this, the line just assigns the parameter to itself and the object stores nothing. To keep data inside the object, write this.name = name;.
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 728–742) and word search (Modules 710–742).
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
OOPFill in the Blanks
Spot the Error
Student with a class code? Join your class →