title: Cloning an instantiated abstract class
body: <p><em>Instantiate an abstract class. -> Duplicate it, preserving the implementation of the abstract method.</em></p>
  
  <pre><code>    public abstract class Foo{… 
  
      public int myVar;
  
      public abstract void do();
  
       }//Foo
  </code></pre>
  
  <p>elsewhere in package:</p>
  
  <pre><code>public class Gha{ … 
  
      Foo testFoo = new Foo{
  
          @Override
          public void do(){
              Log.i("" , "this is a special Foo"); //executable process
          }//do
  
      }//testFoo
      …
  }//Gha
  </code></pre>
  
  <p><strong>Can I copy <code>testFoo</code> in a way that copies <code>testFoo</code>’s <code>.do()</code> method body for the new <code>Foo</code>?</strong></p>