protected scope supports access to this package and subclasses
parent class Public Class A {
protected String name = "zs";
}
subclass:
Public Class B extends A {
public void test () {
System.out.print (name);
/ / Why does it not support access in this way of new A () .name? isn"t this also called access in a subclass? }
}