Q30
In Java, can a subclass override a protected method from its superclass?
A.
Yes, regardless of the package
B.
No, protected methods cannot be overridden
C.
No, protected methods are private
D.
Yes, as long as it's in the same package
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board