title: calling method on enum
body: <pre><code>public enum AgeGroup {
          CHILD{
             public int get(){
                 return 10;
             } 
          }, 
          TEEN, YOUNG, MID, OLD;
      }
  </code></pre>
  
  <p>I have an enum <code>AgeGroup</code> and as you are seeing that <code>CHILD</code> has one method <code>get()</code>. Can somebody tell me why we can't call <code>get()</code> from <code>CHILD</code> what is the design approach behind this or why is it designed like this?</p>