Consider a potential instance method named rotate that would rotate a Rectangle object 90 degrees by swapping its width and height values. For example, if a Rectangle's dimensions are 10 x 30, then calling the rotate method would change its dimensions to 30 x 10.
I think this will be an accessor method, right? Since we are not actually changing the values?