title: What is the advantage of having a private attribute with getters and setters?
body: <p>In object oriented programming, I used to have this question and I still do :</p>
  
  <blockquote>
    <p>What would be the benefit of declaring a class member as <strong>private</strong> if we
    will create for it a <strong>public getter</strong> and a <strong>public setter</strong>? </p>
  </blockquote>
  
  <p>I don't see any difference at the security level between the case above and the case of declaring the class member as public. </p>
  
  <p>Thanks!</p>