title: Protecting superclass method from subclass method
body: <p>Is it possible to a class has a method that can only be called by it's objects and hidden for a subclass object? For instance:</p>
  
  <pre><code>class ClassOne {
      ... // attributes
  
      public void doSomething() { ... }
  }
  
  class ClassTwo extends ClassOne {
      ... // attributes and methods
  }
  
  ClassOne c1 = new ClassOne();
  c1.doSomething(); // ok to call
  
  ClassTwo c2 = new ClassTwo();
  c2.doSomething(); // forbidden
  </code></pre>
  
  <p>I know this seems weird thinking in therms of inheritance, but is it possible?</p>
  
  <p><em>PS: the objective of this question is just to learn more about inheritance of OO programming.</em></p>