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.
