阅读背景:

编译器报错令我疑惑,Vector的子类Stack为什么不能访问父类的protected elementCount变量?

来源:互联网 
   //out.printf("the size of stack is %d", sk.elementCount); //  Error:(34, 49) java: elementCount has protected access in java.util.Vector //out.printf("the size of stack is %d", sk.elem


你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: