Question: Given the following classes definitions, which visibility modifiers causes the code in class B to be compiled when filled in the blanks (instead of the

Given the following classes definitions, which visibility modifiers causes the code in class B to be compiled when filled in the blanks (instead of the question marks) in class A? package p1; package p1; public class A { 7 int i; public class B extends A { public void m1(String[] args) { System.out.println(i); m(); } } ? void mo { } } 3 Select one or more: O a. default b. public O c. protected O d. static O e. private
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
