What is Information Hiding in OOP?

          

What is Information Hiding in OOP?

<<Previous   Next>>

Oops - What is Information Hiding in OOP? - Feb 26, 2010 at 21:22 pm by Rajmeet Ghai

What is Information Hiding in OOP?

Encapsulation supports information hiding by making use of the three access specifiers of a class.

Public:- If a class member is public, it can be used anywhere without the access restrictions.

Private: if a class member is private, it can be used only by the members and friends of class.

Protected : if a class member is protected, it can be used only by the members and friends of class and the members and friends of classes derived from class.

Oops - What is Information Hiding in OOP? - Jan 12, 2012 at 21:14 PM by Vidya Sagar

What is Information Hiding in OOP?

Information hiding is the primary criteria of system modularization and should be concerned with hiding the critical decisions of OOP designing. Information hiding isolates the end users from the requirement of intimating knowledge of the design for the usage of a module. 

Oops - What is Information Hiding in OOP? - Jan 27, 2009 at 22:10 pm by Nishant Kumar

What is Information Hiding in OOP?

Information hiding concept restricts direct exposure of data. Data is accessed indirectly using safe mechanism, methods in case of programming object. Taking bike as an example, we have no access to the piston directly, we can use 'start button' to run the piston. You can understand the advantage of information hiding concept from this example. If a bike manufacturer allows direct access to piston, it would be very difficult to control actions on the piston.    

<<Previous   Next>>
 

Write your comment - Share Knowledge and Experience

Discussion Board
computer science(B.Cs)

what is information hiding?

information stored with in the object .
it is hidden from outside the world and it can only manipulated by the object itself.


for example:
nouman name is stored with in his mind .and age is hidden from outside word.
we cannot access his name age directly rather we can ask them.

yousaf muhammad 05-22-2012 03:30 AM

 

 

 
Latest placement tests
Latest links
 
 
Home | Want a Job? Submit Key Skills | Employer login | My key skills | About us | Sitemap | Contact us