Difference Between Data Hiding and Data Encapsulation…….

Data encapsulation is the process of combining and assembling elements in order to create a new entity and the wrapping of private data into a class. The encapsulation involves implementation concerning the data and the method. Data with internal methods are secured into a capsule while the methods are used to access the data inside it. In this manner, the assembly and grouping of all data and requirements inside a capsule makes it independent for an object to function together.

Data hiding has many uses which include:Security purposes and data protection from data misuse and unauthorized access. Utilizing changing functions to move with difficulty from the outside.Hiding the data unauthorized access or use from suspicious users, especially computer hackers who try to manipulate sensitive data or the program.Hiding the physical storage layout for the data.The programmer can avoid linking to incorrect data. If a programmer does link to the said data, the program will return an error to protect the content.



About Dinesh

I am engineering student........ I am selected in Microsoft Student Partner as MSP............

Posted on October 27, 2011, in C#, Java, Knowledge. Bookmark the permalink. Leave a comment.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: