What are the data hidden?
Data hiding is a method used in object -oriented programming to hide information in computer code. Objects within the code are not considered hidden information. It represents several advantages for programmers because objects cannot connect to irrelevant data, and hackers have less likely to have access to data. At the same time, hiding data can be difficult for a programmer who may have to use more code to create effects in hidden data than necessary if the data were public.
Object -oriented programming is a type of programming in which the code parts are divided into objects. Each of these objects is programmed in capsules, so each object has its own coding, which only applies to this object. Without entering data as hiding, all data are open to objects. Objects cannot directly access any hidden data. If the object approaches hidden data, the error will make an error. This is because the object does not see data, so any function or data, which are marked as hidden, look invisible to the object. Hidden data is mostly hidden data that the user does not need and may prove dangerous if the data is open to the user.
The advantage for programmers is that there is no way to connect the programmer to incorrect data. Hiding data ensures that if the programmer makes this link, the program simply returns the error so that the programmer can fix the error quickly. This also ensures that all objects are truly insulated units, which is the main concept of object -oriented coding. Tickname data are usually hidden, because if such data were published, it could damage the object and destroy the entire program.
Another advantage of hiding data is increased security ahackers. If all internal data is public, a hacker can easily push into internal data and make any changes to the manipulationE with the program maliciously. Hiding data is much harder to break the code, because the data will seem invisible to objects and hacker.
The disadvantage of hiding data is that sometimes it can force programmers to use additional encoding. If the programmer is able to connect to hidden data, the objects can cause objects to function faster or limited to a large amount of code. However, most programmers do not keep all public information because of all problems associated with this type of coding.