A Admin • 833K Points Coach Q. In Java, can a subclass inherit private fields from its superclass? (A) Yes, a subclass inherits private fields (B) Only if the subclass is marked as "final" (C) No, private fields are not inherited by subclasses (D) Only if the superclass is marked as "static" Correct Answer - Option(C) Views: 34 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.