title: In Java, Does Object of some class created in superclass can be used in subclass
body: <pre><code>class A
  {
  
      class B b;
  
      B b = new b();
  }
  
  class B extends A
  
  {
  
      b.function();
  
  }
  </code></pre>
  
  <p>Here can B use the same object created in A?</p>