• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between data protection & data hiding  RSS feed

 
anuj thite
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Clapham
Sheriff
Posts: 22828
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
anuj thite
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please, I want opinions about this query from other experts also.
 
Paul Clapham
Sheriff
Posts: 22828
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!