// Trace2 Example. // Draw the reference diagram, trace the instance // variable changes and predict the output. public class C { private int x; protected int y; public C( ) { x = 10; y = 20; } public C(int theValue) { x = 2 * theValue; y = 3 * theValue; } public int f( ) { x += 2; return x + 3; } public int g( ) { y += 3; return y + 5; } public String toString( ) { return String.valueOf(x + y); } }