Topic: 搞不太清楚public,protected,private,以及默认访问权限 |
Print this page |
1.搞不太清楚public,protected,private,以及默认访问权限 | Copy to clipboard |
Posted by: boyman Posted on: 2005-03-25 17:49 哪位大哥大姐能不能把public ,protected,private,以及默认访问方式帮我解释一 下,好吗,谢谢你们,我搞不太清楚这些的访问权限!!! 请尽量用准确的文字描述作为标题 don't use something meaningless like 各路高手都来探讨一下这个问题。。。。 do some reading first and tell us what you 搞不太清楚 we wouldn't be better than any author in explaining this concept, would we? but we can respond to your specific question |
2.Re:搞不太清楚public,protected,private,以及默认访问权限 [Re: boyman] | Copy to clipboard |
Posted by: ifmirror Posted on: 2005-03-25 22:36 顶一下,我也有这个问题。 关于变量和方法的访问控制也就罢了,问题在于,类可以有默认和公有两种控制,那么,默认方式的类中的公有变量岂不是也受到包限制了? 这个问题有点菜吧?没办法,就是很迷糊。 类的访问控制和其中变量方法的访问控制是不是会综合起作用? |
3.Re:搞不太清楚public,protected,private,以及默认访问权限 [Re: boyman] | Copy to clipboard |
Posted by: boyman Posted on: 2005-03-26 06:12 好的,以后我一定改正 对不起哈,新人 |
4.Re:搞不太清楚public,protected,private,以及默认访问权限 [Re: boyman] | Copy to clipboard |
Posted by: BoyzAllen Posted on: 2005-03-29 12:21 这个我会!哈哈~ |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |