Forums Register Login

difference between data protection & data hiding

+Pie Number of slices to send: Send
Hi,

Hello all forum Members,

I have a doubt in mind related to object oriented programming concept called as "Data
Protection".

Can you tell me the difference beteween Data Hiding & Data Protection ?
Are they same or is there any difference between them?

If there is difference, can you explain it to me?

I know Data Hiding concept.
It means that data is concealed within a class, so that it can't be accessed by functions outsid e the class even by mistake.

I want your views on above issue.

Please give your reply.

Thanks in advance.
+Pie Number of slices to send: Send
Well, given any pair of different terms, it's always possible to think up reasons why they are different. That's often a pointless exercise. But your question presupposes that those terms have precise definitions. Did you get them from a source which tries to provide precise definitions?
+Pie Number of slices to send: Send
Please, I want opinions about this query from other experts also.
+Pie Number of slices to send: Send
Without clarification of the terms, basically you're asking for differences in the meanings of the English words "protection" and "hiding". This isn't a Java question... yet. You could make it a Java question, though.
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 777 times.
Similar Threads
What is the difference between abstraction and encapsulation?
difference b/w encapsulation vs abstraction
switch
difference between data protection & data hiding
Encapsulation vs Data/information hiding
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:16:26.