Given ivar: "foo" Associated getter name: "getFoo"
Given ivar: "width" Associated getter name: "getWidth"
getWidth() {
return this.width;
}
getHeight() {
return this.height;
}
getArea() {
return this.width * this.height;
}
getPerimeter() {
return 2 * (this.width + this.height);
}