===============Class Test:===============
package a;
public class Test {
protected Test(){
}
}
===============Class Test2:==============
package b;
import a.Test;
public class Test2 extends Test{
void fun(){
Test t = new Test(); //Test() is not visible
}
}
WHY? 宣告protected不是可以在子類別中看見嗎?