Ugh, I hate these inheritance questions! But I think I've got this one. Since 'y' is protected in class A, it will be protected in class B too. The answer is C) protected.
This is a classic inheritance question. If 'y' is protected in class A, then it will be protected in class B as well. The answer is definitely C) protected.
Haha, this is a tricky one! I bet the professor is trying to trip us up. But if we remember the rules of inheritance, the answer has to be C) protected.
Hmm, I'm not sure about this one. Since class B inherits publicly from class A, wouldn't 'y' be accessible in class B as well? I think the answer might be A) public.
Myra
13 days agoDante
15 days agoCassandra
16 days agoLovetta
2 days agoDick
3 days agoAlpha
8 days agoBambi
9 days agoJessenia
20 days agoMichael
21 days agoArlen
22 days agoNickolas
24 days agoTeddy
5 days agoCarin
6 days agoErasmo
9 days agoTamekia
18 days agoQueen
1 months agoLindsay
2 months agoMelinda
19 days agoLeonida
23 days agoYuki
1 months agoElza
1 months ago