Java Abstract class implementation
<p>Suppose I have abstract class A and abstract class B which inherits from A, and I create an object of class A as shown:</p>

<pre><code>abstract class A {
   void func1();
}

abstract class B extends A {
   void func2();
}

A objectA = new A() {
   func1(){
      //implementation
   }
};
</code></pre>

<p>Is there a way for me to do something like this:</p>

<pre><code>B objectB = new B(objectA) {
   func2(){
      //implementation
   }
};
</code></pre>

<p>so that objectB gets the implementation of A's functions from objectA?</p>
