Java - Constructors
Consider this class:
class Rectangle {
int width, height;
Rectangle() { width = 1; height = 1; }
Rectangle(int w) { width = w; height = w; }
Rectangle(int w, int h) { width = w; height = h; }
}What will new Rectangle(5) create?
