OOP principle: abstraction
Modelling only the attributes and methods that matter for a purpose and hiding the rest of the detail, such as a Student class that keeps just the data a school app needs.
Understanding OOP principle: abstraction in VCE Software Development U3O1
What it does: A library Member holds name and cardNo only. A hospital Patient model of the same person would hold different attributes, showing same real thing, different abstractions. Callers use calculate_total() without needing to know how the total is worked out, which hides complex detail behind a method. Abstraction keeps what is relevant to the purpose and leaves out the rest. A school app needs school-related data. Attributes like shoe size are irrelevant to its purpose, so they are left out. An ISBN helps identify and borrow books. The paper weight is unnecessary detail for a library app. Hiding the working inside a method lets the caller focus on what it does, not how.
Common mistakes: Every method in a class needs self as its first parameter. The Student class keeps only the name a school app needs and hides the rest behind show(). It should be def show(self):. The constructor needs double underscores on both sides. The Book class models just the title a library search needs. It should be def __init__(self, title):.
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 125–141) and word search (Modules 114–141).
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
abstractionFill in the Blanks
Spot the Error
Student with a class code? Join your class →