Example of information hiding

For example, a public accessor function might be used to allow a value to be entered into an instance variable that represents the age of a person provided that the value is in the range of 0 to 110.

Values outside that range would be rejected.