Inheritance Answers :-
Answer:- 1
0
0
Answer:- 2
from test1
from test1
-----
10, 20
Answer:- 3
from test2
from test2
from test4
from test1
from test1
from test3
------
10
20
30
40,50
Answer:- 4
i()
------
i()
j()
------
Answer:- 5
Class M()
------
Class M()
Class N()
------
------
Answer:- 6
------
------
Answer:- 7
Compile Time Error
Answer:- 8
x
Y(int)
------
Answer:- 9
BY CLASS J :-
G-SIB
G-IIB
G()
---------
H-SIB
G-IIB
G()
H-IIB
H()
---------
I-SIB
G-IIB
G()
H-IIB
H()
I-IIB
I()
---------
BY CLASS K :-
G-SIB
H-SIB
G-IIB
G()
H-IIB
H()
---------
I-SIB
G-IIB
G()
H-IIB
H()
I-IIB
I()
---------
G-IIB
G()
---------
BY CLASS L :-
G-SIB
H-SIB
I-SIB
G-IIB
G()
H-IIB
H()
I-IIB
I()
---------
G-IIB
G()
---------
G-IIB
G()
H-IIB
H()
---------
Answer:- 10
BY CLASS D :-
A-SIB
B-SIB
Done
BY CLASS E :-
A-SIB
B-SIB
C-SIB
Done
BY CLASS F :-
A-SIB
Done
Answer:- 11
BY CLASS P :-
P-SIB
M-SIB
N-SIB1
O-SIB
M-IIB1
M()
M(int)
N-IIB
N-SIB2
N(int)
O-IIB1
O(int)
O()
---------
M-IIB1
M()
---------
M-IIB1
M()
M(int)
N-IIB
N-SIB2
N(int)
---------
BY CLASS Q :-
Q-SIB
M-SIB
N-SIB1
M-IIB1
M()
N-IIB
N-SIB2
N()
---------
M-IIB1
M()
M(int)
---------
O-SIB
M-IIB1
M()
M(int)
N-IIB
N-SIB2
N(int)
O-IIB1
O(int)
---------