GCSE · Computer Science · AQA · Spec 8525

Abstraction

Giving directions, you say 'left at the lights' — not the colour of every front door you pass. You kept what mattered and dropped the rest. That's abstraction.

Computer Science · Abstraction

Same car, two problems

Here are seven true details about one car. Pick a detail, then decide: does this program need it, or is it unnecessary detail you can remove? When you've sorted all seven, switch to the other problem and sort them again.

A car park program has to answer one question: will this car fit in a parking bay that is 5 m long and 2.5 m wide?

Still to sort

Keep — this problem needs it (0)

Take this away and the program can't answer its question any more.

Where the line is: Ask: if I deleted this detail, could the program still give the right answer? If not, it stays.

Remove — unnecessary detail (0)

True about the car, but it makes no difference to the answer.

Where the line is: A detail can be true, interesting, even vital for some other job — and still be unnecessary for this one.

7 of 7 still to sort.

Look at what happened when you switched problems. The car didn't change at all — but which details you kept did. Removing the detail a problem doesn't need has a name: abstraction. And what's left each time is a simpler model of the car that still answers the question completely.

Computer Science · Check your idea

What does abstraction really mean?

Five students each describe abstraction in their own words.

Which one is closest to what you think right now?
How sure are you?

Computer Science · Your turn

One song, two programs

A music app stores these details about every song. Program A builds a playlist that lasts no longer than 60 minutes and lists its songs by title. Program B finds the song that has been played the most times and shows its title. For each detail, tick every program that needs it — or neither.

  • A Program A (the 60-minute playlist) needs it
  • B Program B (the most-played song) needs it
  1. Song title
  2. Length of the song
  3. Number of times played
  4. Album cover picture
  5. Year released
  6. Genre

Computer Science · Exam practice

Now explain it in your own words

A supermarket checkout program works out the total cost of a shopping basket. Explain what is meant by abstraction, and describe how it could be used when writing this program. [3 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

What you need to know

  • Abstraction is the process of removing unnecessary detail from a problem.
  • 'Unnecessary' always means unnecessary for the problem you're solving right now.
  • Here's the test: if a detail vanished, could the problem still be solved? If yes, it can go.
  • Have a goA pizza app works out the price of an order. Your friend insists it must also store the colour of the delivery driver's car. Keep it or remove it?

    Remove it.

    Run the test: delete the car colour and the app still gives exactly the same price. True about the delivery, yes — needed for this problem, no.

  • Removing an unnecessary detail can't change the answer, because the answer never depended on it.
  • Switch to a different problem and the same detail can flip from essential to unnecessary.
  • Have a goProgram X checks whether a box will fit through a doorway. Program Y works out the postage cost from the box's weight alone. Which program needs the box's height?

    Only Program X.

    Fitting through a doorway depends on height, but a cost worked out from weight alone doesn't — same detail, different problem, different decision.

  • Two problems can share details: some are needed by both, some by just one, some by neither.
  • It's not about removing as much as possible — every detail the problem depends on must stay.
  • Have a goTo 'keep it simple', Sam deletes the departure times from a bus app whose job is to say when the next bus leaves. Is that abstraction?

    No — Sam removed a detail the problem needs.

    Abstraction only removes detail the problem doesn't need. Removing a needed detail doesn't simplify the problem; it stops it being solved.

  • Nor does it make things vaguer: the details you keep stay exact.
  • What's left is a simpler model of the problem that still holds everything needed to solve it.

The big picture

Abstraction is the process of removing unnecessary detail from a problem. What counts as 'unnecessary' is decided by the problem you're solving: a detail the answer depends on stays, and a detail that can't change the answer can go. That's why the same detail can be kept for one problem and removed for another — and why the simpler model that's left still solves the problem.

Key points

1Learn the definition exactly: abstraction is the process of removing unnecessary detail from a problem.
2The test for any detail: could the problem still be solved without it? If yes, it can be removed.
3Change the problem and you must ask the question again — 'unnecessary' belongs to a problem, not to a detail.
4What's left after abstraction is a simpler model that still contains everything the problem needs.

Worked example

Problem

A program has to decide whether a game of noughts and crosses has been won. Show how abstraction could be used when writing it.

⚠ Watch out

Writing 'abstraction is removing detail' and stopping there. Leave out 'unnecessary' — or forget that it means unnecessary for the problem being solved — and your definition describes deleting anything at all, including the details the problem can't be solved without.

🧠

Memory hook

Does THIS problem need it? Yes — keep it. No — remove it. New problem? Ask again.

✓

Check yourself

Without looking back: define abstraction in one sentence. Then explain why the car's length was kept for the parking bay problem but removed for the family holiday problem.

Flashcards

(5)
What is abstraction?
The process of removing unnecessary detail from a problem.
'Unnecessary' — unnecessary for what?
For the problem being solved. A detail is unnecessary when the answer doesn't depend on it, so a new problem can change which details are unnecessary.
Why not just remove as much detail as possible?
Remove a detail the problem depends on and the problem can't be solved any more.
Does abstraction make an answer less accurate?
No. Only details the answer doesn't depend on are removed, and the details that are kept stay exact.
What are you left with after abstraction?
A simpler model of the problem that still contains everything needed to solve it.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 30 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.