Multiple choice

Encapsulation can be implemented using the concept of _______

  1. public specifiers

  2. private specifiers

  3. access specifiers

  4. none of the above

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

Encapsulation uses access specifiers (public, private, protected) to control access to class members. These keywords define visibility boundaries - public for external access, private for internal only, and protected for class hierarchy. Access specifiers are the primary tool for implementing encapsulation.