// Trace1 Example. // Draw the reference diagram, trace the instance // variable changes and predict the output. public class A { private int w; private int h; public A( ) { w = 3; h = 4; } public A(int x, int y) { w = x; h = y; } public int getW( ) { return w; } public int getH( ) { return h; } public void f(int x) { w += x; h += 7; } public String toString( ) { return h + "x" + w; } }