3rd Sep 2022, 7:48 PM
A͢J
A͢J - avatar
+ 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.
3rd Sep 2022, 5:39 PM
A͢J
A͢J - avatar