Computer Science, asked by Madhav14206, 5 months ago

example of data hiding

Answers

Answered by Anonymous
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 siddhantakamble
0

Explanation:

Hope it helps to you.If answer is correct give thanks

Attachments:
Similar questions