登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • sign
    如果不对窗体进行版面设置,则一个组件会直接充满整个窗体,所以在JAVA中专门提供了布局管理器来管理组件。(If we do not form the layout settings, a component will directly fill the form, specifically so provided in the JAVA layout manager to manage components.)
    2011-10-07 18:24:42下载
    积分:1
  • jpasswordfield
    Determines the Password
    2012-02-14 14:35:31下载
    积分:1
  • date_picker
    说明:  java 写的日期选择控件.非常实用的哟(java to write the date of selection control. very practical yo)
    2009-08-24 16:56:51下载
    积分:1
  • MirandaAbstract
    abstract class MirandaAbstract implements MirandaInterface.
    2014-01-22 10:57:47下载
    积分:1
  • JSPtushu
    说明:  代码中的数据库不用任何设置,因为本程序为了能好移植到其它的计算机数据库的链接都是动态进 行的。通过本程序你可以了解一些界面设计的技巧以及如何进行数据库路径的动态设置与链接(Code without any settings in the database, because the process can be better to migrate to other dynamic computer database links are carried out. Through this program you can learn some skills in interface design and how to dynamically set the database path and link)
    2010-04-02 13:42:05下载
    积分:1
  • Java-connet-mysql
    java连接到mysql的方法,非常有用(java connect to mysql method is very useful)
    2013-10-19 16:18:14下载
    积分:1
  • dist
    springboot demo 集成redis MQ mybatis 以及thymf模板 可以直接使用(springboot demo MQ mybatis thymf)
    2020-06-17 08:20:01下载
    积分:1
  • ems
    微网能量优化调度管理的数据库封装,用JAVA语言实现(Micro-grid energy optimization scheduling management database package, using JAVA language)
    2013-07-02 19:09:12下载
    积分:1
  • MyPowerSys
    FrameWork,通用权限管理系统,可自动生成代码,快速开发。(FrameWork, universal rights management system that can automatically generate code, rapid development.)
    2014-05-18 01:53:48下载
    积分:1
  • jJaava2Demo
    Java2Demo版,不错的东东,需要先安装j2sdk(Java2Demo edition of the Eastern Yes, the need for installing j2sdk)
    2006-08-13 14:21:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载