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
3 months agoDante
3 months agoCassandra
3 months agoLovetta
2 months agoLovetta
3 months agoDick
3 months agoAlpha
3 months agoBambi
3 months agoJessenia
3 months agoMichael
3 months agoArlen
3 months agoNickolas
3 months agoTeddy
3 months agoCarin
3 months agoErasmo
3 months agoTamekia
3 months agoQueen
4 months agoLindsay
4 months agoMelinda
3 months agoLeonida
3 months agoYuki
4 months agoElza
4 months ago