example of data hiding
Answers
Answered by
0
Explanation:
In the above example, the variable “Num” is private. Hence this variable can be accessed only by the members of the same class and is not accessible anywhere else. Hence outside the classes will be unable to access this variable Which is called data hiding.
Attachments:
Answered by
0
Explanation:
Hope it helps to you.If answer is correct give thanks
Attachments:
Similar questions