title: Instantiating an enum
body: <p>The below code throws a lot of errors at me. So
  why is it not possible to have an enum like below with only the constructor so that it can be instantiated else where??</p>
  
  <pre><code>public  class TestEnum{
       enum Animal
       {
           public Animal(String name)
           {
               this.name = name;
           }
           String name;
       }
  }
  </code></pre>
  
  <p>Is there any way of instatiating enum or does it violate the very basic property/functionality of enums and it should only be used for creating a set of,say, ready-made objects??</p>