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