title: Java, Cannot reduce the visibility of the inherited method from object
body: <p>Continuing from this question: <a href="https://stackoverflow.com/questions/1600667/method-overriding-and-visibility-in-java">Why can&#39;t you reduce the visibility of a method in a Java subclass?</a></p>
  
  <p>I need to create class <code>B</code> that is almost identical to class <code>A</code>, except that <code>B</code> cannot do certain things that <code>A</code> can.</p>
  
  <p>Being a lazy programmer as I am, I tried to inherit <code>A</code>, only to greet with error that <code>B</code> cannot reduce the visibility of <code>A</code> methods. Duh!..</p>
  
  <p>Now <code>A</code> is an API from a vendor, my intention is to encapsulate this API so that it is easier to use.</p>
  
  <p>I wonder what is the best practice to work around this?</p>