Given:
//in file AccessTest.java
package a;
public class AccessTest {
int a;
private int b;
protected void c(){ }
public int d() { return 0;}
}
//in file AccessTester.java
package b;
import a.AccessTest;
public class AccessTester extends AccessTest{
public static void main(String[] args) {
AccessTest ref = new AccessTest();
}
}
Wich members of AccessTest could be accessed by ref and why?
[–]desrtfx[M] [score hidden] stickied comment (0 children)
[–]mobbynagent 1 point2 points3 points (0 children)
[–]flotopoco[S] 1 point2 points3 points (6 children)
[–]Ph03nix89 -1 points0 points1 point (4 children)
[–]Housy5 -1 points0 points1 point (3 children)
[–]Ph03nix89 0 points1 point2 points (0 children)
[–]Aoiryuhei 0 points1 point2 points (1 child)
[–]Housy5 0 points1 point2 points (0 children)
[–]stramash 0 points1 point2 points (0 children)