Search This Blog

Tuesday, July 16, 2019

Difference between Encapsulation and Abstraction

Abstraction is used to hiding the  unwanted data and giving only relevant data
Encapsulation means hide code and data to single unit protect from outside world

Abstraction  Outer Layout used to in term of design
e.g outer look of mobile like   screen  and Keypad button to dial the number

Encapsulation   Inner layout used  in term of implementation
e.g Inner implementation detail of  mobile phone screen ,keypad linked  circuit

No comments :