Why encapsulation is known as Data Hiding? [closed]
You are “hiding” data from users of your object that should be able to use it without needing to know about its internals. The main reason for this is to allow you to later change these internals without breaking the code that calls into your object. This is a technique to improve software maintainability. Common … Read more