登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

于 2013-04-01 发布 文件大小:1KB
0 254
下载积分: 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 个回复

  • GM
    说明:  热血江湖 GM 工具,方便GM更好的操作游戏(Yulgang GM tool to facilitate better operation of the game GM)
    2010-07-03 07:29:10下载
    积分:1
  • myExam
    用Java web框架struts2+Hibernate实现了考试系统。(java web)
    2014-05-19 15:42:07下载
    积分:1
  • News_Release
    新闻发布系统,整合了struts2.0,hibernate,包含新闻站内搜索(News Publishing System, integrated struts2.0, hibernate, including News Search)
    2020-10-26 16:39:59下载
    积分:1
  • design
    运动会管理系统 可以让你快速入门 绝对可以提高技术(Games Management System)
    2014-02-18 20:11:46下载
    积分:1
  • hc_characterdatareplacedatabegining
    import org.w3c.domts.DOMTestDocumentBuilderFactory .
    2013-11-28 14:47:58下载
    积分:1
  • 关于将jar包转换为exe可执行文件说明书
    关于将jar包转换为exe可执行文件说明书,做了一个jsp程序,如何将它弄成一个可执行的程序(About the jar package converted to exe executable file instructions, made a JSP program, how to make it into an executable program)
    2017-10-22 22:18:03下载
    积分:1
  • IGDWN0
    这也是我们学完java之后的一个大型的作业,有用得着的可以拿去看看()
    2018-06-01 09:58:23下载
    积分:1
  • shoppingCart
    说明:  JSP购物车SQLserver版,功能强大,适合学习和电子商务使用 (java jsp programe )
    2009-07-23 09:06:11下载
    积分:1
  • login1234
    说明:  自己写的非常简单易学的登录界面(himself wrote very simple, easy to learn interface login!)
    2006-05-04 20:34:53下载
    积分:1
  • 计算器
    通过java语言,实现了一个简单方便的计算器。(A simple calculator is implemented.)
    2020-06-25 14:00:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载