A Admin • 828.70K Points Coach Q. 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 Correct Answer - Option(D) Views: 20 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.