Thinking Abstractly (OCR A-Level Computer Science): Flashcards

📚Flashcards
The Nature of Abstraction
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

11 cards from this deck

Show

Definition of abstraction

Reducing complexity by hiding unnecessary details to highlight essential features

3 types of abstraction

Data, Procedural, Object-Oriented

Data abstraction

Focuses on what data matters, hides how it's stored

Procedural abstraction

Focuses on what function does, not how

Object-oriented abstraction

Uses objects to model real-world entities, exposing only relevant data/behaviours

Abstraction benefit: complex systems

Breaks into simpler, understandable components

Abstraction benefit: reusability

Abstract components reused in different projects

Abstraction benefit: maintainability

Changes to implementation don't affect abstract interface

Over-abstraction issue

Too many layers make system overly complex

Under-abstraction issue

Results in cluttered, repetitive code that's hard to maintain

Abstraction vs encapsulation

Abstraction simplifies; encapsulation protects data

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.