First page Back Continue Last page Overview Graphics
Data Encapsulation: “traditional”
In most cases, like in Java or C++, Data Encapsulation is achieved with two kinds of methods:
- The getter method, which is used for accessing the data. This method doesn't change the data.
- The setter method is used to change the values of the setter methods.
getter
setter