Crating an object of an abstract class - Error
<p>I have an abstract class called <code>A</code>.</p>

<pre><code>public abstract class A {
 protected String name;
 A(String name){
  this.name=name;
 }
}
</code></pre>

<p>The above class is in the package <code>com.goog.product.demo</code> package</p>

<p>Now from another package i need to load some test data, by creating an object as shown below;</p>

<p>The following class is in the package <code>com.goog.product.test</code> .</p>

<pre><code>public class Test {

 public void loadData(){
  A a =new A("NAME");
 }
}
</code></pre>

<p>But, i end up getting a <code>Cannot instantiate the type A</code> error.</p>

<p>The reason is because; you can't create an object of abstract class. Is there any other way i could load some test values ?</p>
