class MyClass
    {
    // set up a property with getter, setter and variable.
    published int height /* a property, not a variable! */
      get
        {
        return mHeight;
        }
      set
        {
        if ( 50 < value && value < 275 ) mHeight = value;
        }
      private int mHeight;
      }

// access the getter and setter as if the property were a public variable.
x.height++;