What do you mean by data encapsulation?

Technology CommunityCategory: OOPWhat do you mean by data encapsulation?
VietMX Staff asked 3 years ago

Data encapsulation is a concept of binding data and code in single unit called object and hiding all the implementation details of a class from the user. It prevents unauthorized access of data and restricts the user to use the necessary data only.