title: What is the purpose of public, protection, private on class diagram? Any examples?
body: <p><br>
  I've been curious about access modifiers.<br></p>
  
  <p><strong>public</strong> means that the item is available to anyone who has access to the object, </p>
  
  <p><strong>protected</strong> means that it's available to the object itself and any subclasses, and </p>
  
  <p><strong>private</strong> means it can be accessed only within the class itself.</p>
  
  <p>But, I don't know the example of public, protected, and private use cases.<br>
  I mean, could anyone please explain me the cases about public, private and protected access modifiers on class diagram?<br>
  Just to make sure that I'm understand them right.<br></p>
  
  <p>Thanks!</p>