how does a class enforce data hiding,abstraction and encapsulation
Answers
Answered by
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.
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
Science,
8 months ago
Social Sciences,
8 months ago
English,
8 months ago
Physics,
1 year ago
English,
1 year ago