public class Rectangle { // 2.2 Creating and Storing Objects // // 2_02_6 Rectangle // // Attributes private int width; private int height; // Constructor public Rectangle(int rectWidth, int rectHeight) { width = rectWidth; height = rectHeight; } // This method lets us print out the object // to see the values of the instance variables public String toString() { return "Rectangle with width: " + width + " and height: " + height; } }