... super(i);//如果父类没有默认构建函数,则父类的构建函数必须显示调用,编译器不会自动添加 Name hiding名称遮蔽 protected天生具有friendly权限。 ...
基于32个网页-相关网页
名称遮蔽
Name masking
以上为机器翻译结果,长、整句建议使用 人工翻译 。
当子区域中的程式码参考变数名称时,编译器就会解析对主导遮蔽变数的参考。
When code inside the subregion refers to the variable name, the compiler resolves the reference to the shadowing variable.
youdao
遮蔽会使用相同名称引入多个变数版本。
Shadowing introduces more than one version of a variable with the same name.
应用推荐
模块上移
模块下移
不移动