What is Encapsulation in Java?

PYQ RPSC Programmer 2024

What is Encapsulation in Java?

  1. A.

    The ability of one class to inherit the properties of another class.

  2. B.

    The ability of an object to take many forms.

  3. C.

    Integrating data (variables) and code (methods) into a single unit.

  4. D.

    The ability to overload methods.

  5. E.

    Question not attempted

Attempted by 644 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…