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 p2: package p1; public class A int i; public class B extends A public void mi(String] args) { System.out.println(1): MO: 3 } void mo Select one or more : a default b. protected c. static d. public e private
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
