| abstraction solve the problem in design level. |
encapsulation solve yhe problem in implementation level. |
| used for hiding unwanted data and giving relevent data. |
hiding the code and data into single unit to protect data from outside world. |
| focus on what the object does instead of how it does it |
hiding the internal details or mechanisms of how the object does something. |
| outer layout used in terms of design. |
inner layout used in terms of implementation. |