Encapsulation: - wrapping of data in single unit. also we can say hiding the information of essential details. Example: You have a mobile phone.... there it some interface which helps u to interact with cell phone and u can uses the services of mobile phone. But the actually working in cell phone is hide. u don't know how it works internally.
Encapsulation:-- Information hiding.
Abstraction:-- Implementation hiding.
No comments:
Post a Comment