Computer Science, asked by kuki211, 1 year ago

how does a class enforce data hiding,abstraction and encapsulation

Answers

Answered by pihu16
15
A class can have access specifiers which are mainly public,private and protected.When the members which are private and protected remain hidden for outside world, a class enforces data hiding.
Data abstraction means representing essential data without background details.
The system of wrapping or binding data into a single unit is known as encapsulation.In this way a class enforces data hiding,data abstraction and encapsulation.
Similar questions