Multiple choice

Defining a class so that the implementation of the data and methods of the class are not known to the programmers who use the class is called

  1. data binding

  2. polymorphism

  3. encapsulation

  4. inheritance

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

Encapsulation is the OOP principle of hiding implementation details (data and method internals) from users of the class. This allows the class designer to modify internal implementation without affecting code that uses the class, as long as the public interface remains stable. Data binding, polymorphism, and inheritance are related but distinct concepts.