Java
hardQ1
What is the output of: class A { int x = 10; } class B extends A { int x = 20; void print() { System.out.println(super.x + " " + x); } } new B().print();
1 / 15
What is the output of: class A { int x = 10; } class B extends A { int x = 20; void print() { System.out.println(super.x + " " + x); } } new B().print();