Computer Applications

Which of the following is not true for Encapsulation?

  1. Data and functions are loosely attached.
  2. Data and functions are wrapped together.
  3. Data is secured from getting mishandled.
  4. None of them.

OOP Intro Java

14 Likes

Answer

Data and functions are loosely attached.

Reason — Encapsulation ensures that data and functions are wrapped together in an object, preventing direct access to the data from outside functions. This helps prevent unintended modifications and enhances security.

Answered By

11 Likes


Related Questions