登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

于 2013-04-01 发布 文件大小:1KB
0 228
下载积分: 1 下载次数: 3

代码说明:

  实现一个程序,对用户输入的类权限、成员权限、以及使用该类对象的环境与这个类的关系,判断这个环境中能不能访问这个类的这个成员。 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.)

文件列表:

ClassMemeberPriviledge.java,2450,2009-10-14

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • SourceCode-for-Thinking-in-Java.chm
    Thinking in java 的源代码,编程习题的源代码(Thinking in java source code, source code for programming exercises)
    2013-02-22 06:44:53下载
    积分:1
  • Java-Online-shopping-mall-project
    JAVA版的网上商城项目完整源码,学习java和jsp很好的例子,经过简单修改可以用在自己的项目中(JAVA version of the online mall project complete source code, learning JSP and Java very good example, after a simple modification can be used in their own projects)
    2016-03-24 17:50:12下载
    积分:1
  • javakejian
    初学者学习java的课件,包含很全面,初学者可以下载看看 货真价实(Java for beginners learning courseware, including a very comprehensive look at the genuine beginners can be downloaded)
    2009-12-11 22:14:32下载
    积分:1
  • JAVA-CTPAPI-master
    说明:  源码和依赖的jar包都在压缩文件里 test目录下有行情的demo,交易部分的API还没完全做好,可以连上前置和登录 这个java接口算是预览版吧(Source code and dependent jar packages are all demo in the test directory of the compressed file. The API of the transaction part is not yet complete. You can connect the pre-and login java interface as a preview version.)
    2019-03-19 17:51:12下载
    积分:1
  • equagion
    一个java开发的定时器操作的小例子,欢迎大家使用(A small example of Java development timer operation, to welcome you all to use)
    2017-05-29 00:13:38下载
    积分:1
  • Lxyweb
    spring+hiberbate+struts简单登入程序(spring struts simple log hiberbate procedures)
    2006-07-22 14:44:01下载
    积分:1
  • Android zdy2048xyx
    我选择使用Eclipse(它是一个开发源码项目)来构建一个可修改的编程环境。(I chose to use Eclipse, an open-source project, to build an adaptable programming environment)
    2019-04-19 13:46:46下载
    积分:1
  • MyShoot
    java 飞机大战 打飞机完整代码一定要20字???????(Java aircraft war aircraft complete code must be 20 words??????????)
    2017-06-29 22:37:04下载
    积分:1
  • 飞机大战3.0
    功能性需求:游戏状态的控制功能、游戏难度的调整、游戏界面的绘画、还价游戏控制功能(Functional Requirements: Control Function of Game State, Adjustment of Game Difficulty, Drawing of Game Interface, Control Function of Bargaining Game)
    2018-12-07 17:45:39下载
    积分:1
  • Escap
    对中文进行编码解码JAVA类,支持跨平台,跨容器使用,非常好用(coding and encoding)
    2012-12-17 10:45:27下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载