What are the information hidden?

Information, as computers concerns, concerns the maintenance of the parts of the program separate from other parts. There are many reasons to do this, one of the most common is easy upgrading. If the program keeps its core separately from its interface, then one or the other can easily be changed without affecting its partner. This allows small changes in the main features of the program or the potential for a scalable interface, all while providing a simple upgrade process for the program. A key part of the information hiding is the encapsulation that each segment of the program separates from all others.

There are many different ways of writing computer programs. Early languages ​​required the programmer to write a program in a continuous sequence; The first line of the program was upstairs and the last line was at the bottom. As the program worked, he basically moved down the code.

Modern programming languages ​​rarely work in such a strict way. Many rely on the Indian individual "objects" of whichEveryone will perform a specific task. This not only simplifies the program writing, but allows the specific code to work again and again without being rewritten. For example, if the program requires the result of a specific mathematical function five times, rather than writing this process five times, programmers will make this function into the object and let the program call five times.

The processes used to hide the information rely on the nature of the object programming. When writing a program that uses these concepts, objects are designed for individual parts of the program. In this case, a specific object may have multiple versions, each of which is called a different segment of the program. In the above example, the same call is made five times in the program. If two of these calls took place and the main program was made by three, then programmers wrote two objects that were virtually identical.

the main reason why programsThey use hiding information, simplification of modifications. If part of the program only uses its own objects, it is easier to modify this part of the program. If objects are shared across the program, one small change could cause failure in seemingly unrelated parts of the system.

The secondary reason for hiding information is security. If each part of the program works as much as possible, it is more difficult for a harmful cascade process through the system. For example, if a malicious program gets access to a certain part of the encapsulated system, it may access the part it originally encounters. The other parts of the program remain at least temporarily unaffected.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?