June 24, 2019
Currently there is no PrepInsta Explanation. Did you know?
You can also submit your own version of explanations under user explanation section and also view other submitted explanations by other users.
Please login to submit your explanation
You can check your performance of this question after Login/Signup
all of the mentioned
By making all member functions constant.
By making at least one member function as pure virtual function.
By declaring it abstract using the static keyword.
By declaring it abstract using the virtual keyword.
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.
Multi level inheritance
All of the above
Public data members
Private data members
Protected data members
Please login to report
Follow any of these TCS Topics
Follow Next –
Login/Signup to comment