+ 1
Christian Huml
Here is an example:
https://code.sololearn.com/c59HHgH6tsBl/?ref=app
+ 2
Christian Huml
Data Hiding means encapsulation means all the members and methods of a class will be bind in single unit. It means you can access and modify data using a single object. Setter and getter methods are the key point of encapsulation. Setter method is used to modify data and getter method is used to access data. Other key point is all the members should be private so noone can modify data directly.