下列关于访问范围说明符的说法中,正确的是
A.使用private修饰的类的成员可以在程序的任何地方被访问
B.使用protected修饰的类的成员仅能在本类内被访问
C.使用public修饰的类的成员仅能在本类及子类中被访问
D.没有使用访问修饰符的成员,默认是私有的,仅能在本类内被访问
正确答案是D
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/240587.html
上一篇:某企业于某年年初发行5年期,到期一次还本付息的债券,面值100万元,票面年利率10%,实际发行价格为95万元,每年年末计息一次。则第一年末计入“财务费用”科目的金额为( )。
下一篇:Passage TwoQuestions 26 to 30 are based on the following passage.There are a couple of things to know about the use of humor in a speech. One thing is to distinguish healthy and unhealthy humor. Unhealthy humor usually has a victim. It is bas