title: What is the point of getAttribute() methods
body: <p>I'm doing an assignment which asks us to define a class for a rectangle and equip it with various methods, two of which is <code>getHeight()</code> and <code>getWidth()</code>, which aren't supposed to do anything other than <code>return this.height;</code> and <code>return this.width;</code>. I don't understand the point. If I ever want to access the <code>width</code> or <code>height</code>, why wouldn't I just do it by referencing <code>this.width</code> instead of <code>this.getWidth()</code>?</p>