Multiple choice technology programming languages

Through _________ , you can control what parts of a program can access the members of a class

  1. Encapsulation

  2. Class

  3. Inheritance

  4. Polymorphism

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

Encapsulation is the object-oriented programming concept of wrapping data and code into a single unit and restricting access to class members using modifiers like private, protected, and public. Distractors like inheritance, class, or polymorphism do not directly restrict access to members.