title: Java Reflection: Create an implementing class
body: <pre><code>Class someInterface = Class.fromName("some.package.SomeInterface");
  </code></pre>
  
  <p>How do I now create a new class that implements <code>someInterface</code>?</p>
  
  <p>I need to create a new class, and pass it to a function that needs a <code>SomeInterface</code> as an argument.</p>