Question: Which statement does NOT describe the object-oriented programming concept of encapsulation?
- It protects the data from outside interference.
- A parent class is encapsulated and no data from the parent class passes on to the child class.
- It keeps data and the methods that can manipulate that data in one place.
- 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.