title: Why am I able to have a public member in a non-public class?
body: <pre><code>class MyClass 
  {
      public static final int num=90;
  }
  </code></pre>
  
  <ul>
  <li>Why am I allowed to create a public member in a non-public class?</li>
  <li>Is there another way of accessing this member that I do not know of (other than through the class name)?</li>
  </ul>