Consider the following two class definitions.
What will the following sequence of statements print?
class Test { public int a; public Test() { a = 8; } public Test(int x) { a = x + 4; } } class Example extends Test { public int b; public Example() { b = 0; } public Example(int y) { super(y + 2); b = 1; } }
Example foo = new Example(); IO.println(foo.a); IO.println(foo.b); Example bar = new Example(8); IO.println(bar.a); IO.println(bar.b);
8 0 14 1