Given:
What is the result?
100 200 : 0 0 :
100 200 : 100 0 :
100 200 : 100 200 :
0 0 : 100 0 :
3 4 5 6
3 4 3 6
5 4 5 6
3 6 5 6
and the code fragment:
S2 sobj = new S2(); sobj.display(10, 100);
Child 10
Child 100
Parent 100
Parent 10
Parent 1000
A compile time error occurs.
Compilation fails.
11
8
9
10