-
ClassMemeberPriviledge
实现一个程序,对用户输入的类权限、成员权限、以及使用该类对象的环境与这个类的关系,判断这个环境中能不能访问这个类的这个成员。
4. 背景知识介绍:对类成员的访问权限由3个方面决定:(1)类的访问权限(public或default),(2)成员变量的访问权限(public, protected, default或private),以及环境与类的相互关系(同类SameClass,同包不同类SamePackageNoteSameClass,不同包但为子类OtherPackageSubClass,不同包非子类OtherPackageNotSubClass)。例如,如果一个类A是public的,它的一个成员变量x是protected的,则这个成员变量的访问权限是default的,试图访问这个类的一个运行环境与A的关系是OtherPackageSubClass,则这个环境中能够访问变量x。(Implement a program, the relationship between the classes of permissions, user input member permissions, as well as the environment of use of such objects of this class, it is judged in this environment can not access this members of this class.
4. Background knowledge: the access rights of the class members decided by three aspects: (1) access rights (public or default), (2) the member variable access rights (public, protected, default or private), as well as environmental and the relationship of the class (of similar SameClass, same package different classes SamePackageNoteSameClass, different packages, but for subclass OtherPackageSubClass, different package non-subclass OtherPackageNotSubClass). For example, if a class A is public, it s a member variable x is protected, the access rights of the member variables is default, tries to access a runtime environment for this class A relationship is OtherPackageSubClass this environment be able to access the variable x.)
- 2013-04-01 20:00:25下载
- 积分:1
-
Play
playframework框架,可供初学者使用(playframework framework)
- 2011-09-17 16:56:52下载
- 积分:1
-
Steganogra188368522005
极品飞车之追捕者是大家喜爱的游戏之一
极品飞车之追捕者是大家喜爱的游戏之一(chase you love is one of the game Need for Speed Most Wanted; chase you love is one of the game)
- 2006-07-06 11:22:23下载
- 积分:1
-
cdc
说明: 基于WHO PEN干预的慢性病管理信息系统,普通的增删改查功能(The chronic management information system based on the WHO's intervention, the general increase and delete function)
- 2017-11-14 10:38:28下载
- 积分:1
-
1
说明: java code for multithreading, queue implementation using stacks and stacks using arrays
- 2010-12-04 01:58:28下载
- 积分:1
-
shoupiao
列车购票系统,列车员,用户,购票查询增删改等功能(Train ticketing systems, conductor, users, ticket inquiries CRUD functions)
- 2014-06-18 22:59:40下载
- 积分:1
-
miniQQ0.7
miniQQ,课程设计项目。支持好友,黑名单,保存聊天记录(MiniQQ, curriculum design. In support of friends, black list, save chat logs)
- 2012-04-10 14:25:06下载
- 积分:1
-
Spring-Security-3
一本介绍spring security 3的书籍,挺好的(spring security 3 introduction)
- 2012-05-02 22:00:00下载
- 积分:1
-
xiaoche
一个制作的简单的小汽车模型,运用VRML中的。(a car)
- 2011-07-26 09:45:33下载
- 积分:1
-
binary-weixin-java-tools-master
微信支付、开放平台、公众号、企业号、小程序开发的Java SDK(Java SDK, WeChat payment, open platform, public number, enterprise number, and small program development)
- 2017-12-14 10:33:27下载
- 积分:1