title: How to return non-static variable from static method?
body: <p>Even through these reference <code>Tri1</code>, I am not able to return base value. </p>
  
  <pre><code>public class Triangle {
  
      private double base;
  
      Triangle Tri1 = new Triangle();
  
      public static double getBase() 
      { 
          return Tri1.base; 
      }
  }
  </code></pre>