Recently MeroSpark is lunched with more features and services, now you can ask your question, sell your books, share your notes and many more. Visit now and create your account to take full advantage of MeroSpark.

Information Hiding – Feature of Object Oriented Programming (OOP)

Download our Android App from Google Play Store and start reading Reference Notes Offline.

information hidingInformation Hiding – Feature/Characteristics of Object Oriented Programming (OOP)
Object Oriented Programming (OOP)
Third Semester | Second year
BSc.CSIT | Tribhuvan University (TU)

Information Hiding
Information or data hiding in an object is characterized by its knowledge of a design decision which it hides from all other objects. The interface of an object is chosen to reveal only the desired data or working of the object. According to the definition of information/data hiding given by Booch in 1991, it is the process of hiding all details of an object that do not contribute to its essential characteristics; typically, the structure of an object as well as the implementation of its methods is hidden from other objects.

There can be two types of information hiding; functional information hiding related to the hiding of implementation details of methods (behavioural information of a particular object) and data hiding (structural information of a particular object). As in the case of abstraction, there are varying degree of information hiding. Some languages like C++ also allow varying degree of visibility of objects like public, private and protected. So the mechanism of information hiding is said to provide a strictly controlled access to the information enclosed within the capsule.

(Visited 681 times, 1 visits today)

Posted By : Digvijay | Comment RSS | Category : Third Semester
Tag :

Post a Comment

Your email is never published nor shared. Required fields are marked *


Wordpress DMCA
Community | Toolbar | Android App | Founder/Developer : Hari Prasad Chaudhary | CSIT Portal Manager : Digvijay Chaudhary