Which option best describes encapsulation?
Practice this question from Quiz: OOPS Revision Sheet, with options and an explanation.
Question
Which option best describes encapsulation?
Option A
Hiding implementation details behind a public interface only
Option B — Correct answer
Bundling data with methods and controlling access to that state
Option C
Allowing one method name to have multiple signatures only
Option D
Creating subclasses automatically