+ 3
What is the difference between encapsulation and data hiding?
3 Answers
+ 4
encapsulation means wrapping of data into a single entity. like classes
data hiding means show only essential data. like in ATM, only essential data is shown to the customer. It may change from person to person.
+ 1
that's data abstraction.
and encapsulation is wrapping up data into singe unit like music player
0
@tushar jain @simmy thnx for real life examples đ