Multiple choice technology programming languages

In Object Oriented Programming, how would you describe encapsulation?

  1. The conversion of one type of object to another.

  2. The runtime resolution of method calls.

  3. The exposition of data.

  4. The separation of interface and implementation.

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

Encapsulation in OOP is the practice of hiding internal implementation details while exposing only necessary functionality through a public interface. This bundling of data with methods that operate on that data, and controlling access through visibility modifiers (private, public, protected), enables information hiding and reduces system complexity. Options A and C describe type casting and exposure (the opposite of encapsulation), while B describes polymorphism.