Multiple choice

With the object-oriented (OO) approach, an object encapsulates, or _____ a programmer.

  1. carries out, the details of an object for

  2. hides, the details of an object from

  3. reveals, the details of an object to

  4. extends, the details of an object beyond

  5. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In object-oriented programming, encapsulation means an object hides its internal implementation details from outside code. The programmer only interacts with the object through its public interface (methods), not directly with its internal data or logic.