Encapsulation vs Data Hiding – Java
More generally encapsulation refers simply to bundling the data (e.g. of an object) with the operations on that data. So you have a class encapsulating data – fields – along with the methods for manipulating that data. But encapsulation is also sometimes used in the same way as your answer, and indeed, one of the … Read more