Once you attempt the question then PrepInsta explanation will be displayed.
Data hiding is a method used in object-oriented programming to hide information within computer code. Objects inside code are not privy to information which is considered hidden. It presents many advantages for programmers because objects are unable to connect to irrelevant data and hackers are less likely to access data.
Data hiding takes specific parts of the code and then conceals those parts from the objects. The objects are not directly accessible in any data that is hidden. If an object is able to access hidden data, it will return an error, and this is because the object cannot see the data.
Login/Signup to comment