title: inner class extending
body: <p>In java, say I have the following class:</p>
  
  <pre><code>public class A{
    protected class B{
    }
  }
  </code></pre>
  
  <p>can I extend the inner class by doing the following?</p>
  
  <pre><code>public class C extends A{
    protected class D extends B{
    }
  }
  </code></pre>
  
  <p>What I want to do is that I have the class C above and I need to change something in A's inner class so I was thinking that I need to extend the inner class to do so but I wasn't sure how exactly to do that.</p>