aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer Science HLTopic 7.2Abstraction
Back to Computer Science HL Topics
7.2.34 min read

Abstraction (Computer Science HL)

IB Computer Science • Unit 7

Smart study tools

Turn reading into results

Move beyond passive notes. Answer real exam questions, get AI feedback, and build the skills that earn top marks.

Get Started Free

Contents

  • Expose what is needed, hide the rest
  • Abstract classes and interfaces
  • Designing the right interface
  • Exam-style question
The big idea: Abstraction means showing only the operations a user needs, and hiding how they are done.

A driver turns a key. Combustion, timing and fuel injection all happen — none of them are on the dashboard.
AbstractionEncapsulation
Question answeredWhat should be visible?How is it protected?
Concerned withDesign — the interfaceImplementation — access control
Achieved byAbstract classes, interfaces, method designprivate, protected, getters and setters
PurposeReduce what a caller must understandStop invalid state being created
Not the same thing, and routinely swapped: They work together, so answers blur them. Abstraction decides what the outside world should see. Encapsulation enforces it.

If a question asks for both, give the distinction above in one sentence each.

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime

Abstract class

  • Cannot be instantiated — it describes a kind, not a thing
  • May hold some implemented methods and shared attributes
  • A child must implement every abstract method
  • Use when children share real behaviour

Interface

  • Only the signatures — a pure contract
  • A class can implement many interfaces
  • Use when unrelated classes must offer the same operations
  • "Can-do" rather than "is-a"

What both give

  • A guarantee that the method exists on every implementer
  • Which is exactly what polymorphic code depends on
  • Callers depend on the promise, never on any one class
Why abstract classes cannot be instantiated: An abstract method has no body. An object of that class could be asked to run a method that does not exist — so the language refuses to create one.

It is a promise about children, not a thing in its own right.

Know your predicted grade

Take timed mock exams and get detailed feedback on every answer. See exactly where you're losing marks.

Try Mock Exams FreeYour first topic is free to keep • No credit card required

What a good abstraction does

  • Names operations in the caller's language — deposit(), not updateBalanceField()
  • Leaves no way to reach a partially-updated state from outside
  • Can be re-implemented completely with no caller changing
  • Is small: every extra public method is a promise that must be kept forever
The leak test: If a caller must know how something works to use it correctly, the abstraction has leaked.

A method called saveToMySQL() forces every caller to know the database. save() does not — and can be changed later without anyone noticing.

How this is tested — you must distinguish abstraction from encapsulation, and justify hiding something specific. It comes up two ways:

Paper 2 — working with code

  • Explain abstraction, 3-4 marks
  • Distinguish it from encapsulation
  • State why an abstract class cannot be instantiated

Paper 2 — the algorithmic-thinking question

  • Design an abstract class or interface for a scenario
  • Explain what a change of implementation would cost
The classic trap: Answering "abstraction means hiding data". That is encapsulation. Abstraction is about what is exposed — the interface — not about access modifiers.
IB-style questionExplain[5 marks]

A weather app fetches data from an online service. Explain how an abstract WeatherSource class with a getForecast() method helps when the provider is changed.

Model answer plan

See the mark-by-mark plan — for / against / judgement, with marking guidance — in study mode.

Claim your free topic

IB Exam Questions on Abstraction

Practice with IB-style questions filtered to Topic 7.2.3. Get instant AI feedback on every answer.

Practice Topic 7.2.3 QuestionsBrowse All Computer Science HL Topics

How Abstraction Appears in IB Exams

Examiners use specific command terms when asking about this topic. Here's what to expect:

Define

Give the precise meaning of key terms related to Abstraction.

AO1
Describe

Give a detailed account of processes or features in Abstraction.

AO2
Explain

Give reasons WHY — cause and effect within Abstraction.

AO3
Evaluate

Weigh strengths AND limitations of approaches in Abstraction.

AO3
Discuss

Present arguments FOR and AGAINST with a balanced conclusion.

AO3

See the full IB Command Terms guide →

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

7.1.1Fundamentals of OOP
7.1.2Designing classes
7.1.3Static vs non-static
7.1.4Classes and objects
View all Computer Science HL topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Computer Science HL

Previous
7.2.2Polymorphism
Next
Composition and aggregation7.2.4

Make these notes count

Reading notes is just the start. Test yourself with IB-style questions and get feedback that shows you what examiners want.

Start FreeView All Computer Science HL Topics