![]() in Public, it may be some post, or user information like birth date, where you live, etc. in private, there may be inbox, some personal Photo or video. Facebook is just like a Class, it has Private, Public, and Protected Members. Private Information should only be accessible to its owner.īy Information Hiding we mean "Showing only those details to the outside world which are Necessary for the outside world and hiding all other details from the outside world".įacebook may have millions of user accounts. Information Hiding is one of the most important principles of OOP Inspired from real life which says that all information should not be accessible to all persons. and how transaction occurs are totally hidden.) While Information Hiding hide the implementation details for security purpose.Įxample: Consider our ATM. Here they have various levels of abstractions. ![]() Abstraction Hiding only the necessary details from the end user.Įxample: consider a school administration, here the privilege of principle and the student in accessing a webpage/database entirely differs. Abstraction and Information Hiding are inter-related to one another.
0 Comments
Leave a Reply. |