locked
difference between data protection & data hiding RRS feed

  • Question

  • User-1051691414 posted

    Hi,

    Hello all forum Members,

    This is my question related to object oriented programming concept. I can't find a place for it to post.

    I think it is the related place for it.

    so that, i am posting it here.

    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 any 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.

    Thursday, October 7, 2010 4:15 PM

Answers

  • User639223732 posted

    hi

     "Data Hiding" is the means by which you accomplish "Data Protection".

    for more clear let take one example.

    "You get safe breaking by having a car with ABS". ABS would be data hiding, and safe breaking would be data protection. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 8, 2010 4:11 AM

All replies