[10 pts] Suppose we have the class defined as below.
class C { static int y = 0; int z; C() { z = 0; } void incrX() { int x = 0; x++; IO.println(x); } void incrY() { y++; IO.println(y); } void incrZ() { z++; IO.println(z); } } | public class Example { public static void run() { C a = new C(); C b = new C(); a.incrX(); a.incrX(); b.incrX(); a.incrY(); a.incrY(); b.incrY(); a.incrZ(); a.incrZ(); b.incrZ(); } } |
1 1 1 1 2 3 1 2 1