title: Is there any technical difference between a subclass and an inherited class?
body: <p>Is there any technical difference between a class which inherits from another class and a class which is a subclass of it?
  What's the difference between A and B in the following code:</p>
  
  <p>A)</p>
  
  <pre><code>public class foo {
   ...
   private class bar {...}
  }
  </code></pre>
  
  <p>B)</p>
  
  <pre><code>public class foo { ...}
  
  private class bar extends foo {...}
  </code></pre>