title: Restricting child class from accessing parent class method
body: <p>Say I have an interface I and classes A and B.</p>
  
  <pre><code>interface I
  {
    method();
  }
  
  class A implements I
  {
    method()
    { //Implementation 1
    }
  }
  
  class B extends A
  {
    method()
    { //Implementation 2
    }
  }
  </code></pre>
  
  <p>I want to restrict B from accessing 'method'. A call to b.method() should always use a.method() instead of b.method implementation where a and b are instances of A and B respectively. Is there any workaround?</p>
  
  <p>Wish interfaces supported another access modifier to handle such cases.</p>