logo

AQA A-Level Computer Science practice

Explain encapsulation and give one reason why the object-oriented paradigm uses it. Your answer should also distinguish encapsulation from instantiation.

Try the question first, then check the answer and practise the same topic again.

At a glance

Question

Type

practice

Style

Topic

Programming paradigms

Exam-style question

Try this first

Explain encapsulation and give one reason why the object-oriented paradigm uses it. Your answer should also distinguish encapsulation from instantiation.

Answer and explanation

Concise answer

Encapsulation is the organisation of data and the methods that operate on it within a class, with access controlled using visibility such as public, private or protected.

Why this is correct

A complete answer identifies encapsulation as a class-based way of controlling access to attributes and methods, links it to managing variation or implementation details, and does not confuse it with creating an object. Instantiation specifically concerns creating an object from a class.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions