Question: Which statement does NOT describe the object-oriented programming concept of encapsulation?

  1. It protects the data from outside interference.
  2. A parent class is encapsulated and no data from the parent class passes on to the child class.
  3. It keeps data and the methods that can manipulate that data in one place.
  4. It only allows the data to be changed by methods.

Answer: The correct answer of the above question is Option D:It only allows the data to be changed by methods.