Saturday, 16 February 2013

What Is Information Hiding?




If a program keeps its core separate from its interface, then one or the other can easily be changed without affecting its partner. This allows small changes to the program’s core features or the potential for a scalable interface, all while providing a simple upgrade process for the program.

Early languages required the programmer to write the program in a continuous sequence; the first line of the program was at the top and the last line was at the bottom.

Many rely on individual “objects” that will each perform a specific task. This not only simplifies writing the program, but it allows a specific piece of code to operate over and over without needing to be rewritten.

For example, if the program requires a result from a specific math function five times, rather than writing that process out five times, the programmers will make that function into an object and have the program call it up five times.

The processes used in information hiding rely on the object nature of programming.

When writing a program that utilizes these concepts, the objects are designated for individual portions of the program.

If a portion of the program uses only its own objects, it is easier to modify that portion of the program.

1 comment:

  1. Is data hiding one of the type of data encryption ? I am confused between both these concepts. By data encryption we mean that its a way to changing/transforming the information into secret code.
    esign

    ReplyDelete