title: Do we have a Readonly field in java (which is set-able within the scope of the class itself)?
body: <p>How can we have a variable that is <em>writable</em> within the class but only "readable" outside it?</p>
  
  <p>For example, instead of having to do this:</p>
  
  <pre><code>Class C {
    private int width, height;
  
    int GetWidth(){
      return width;
    }
  
    int GetHeight(){
      return height;
    }
  
    // etc..
  </code></pre>
  
  <p>I would like to do something like this:</p>
  
  <pre><code>Class C {
    public_readonly int width, height;
  
    // etc...
  </code></pre>
  
  <p>What's the best solution?</p>