- 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.
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.