登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • chatroom
    一个用java编写的聊天室工具,使用了多线程,每次上线一个用户都会开辟一个线程(Write a java chat room tools, the use of multiple threads, each on-line user would open up a thread)
    2014-06-08 17:35:38下载
    积分:1
  • java跨平台调用打印机打印word、pdf、图片实现
    该方法是Java语言从web后台进行调用打印机的例子(print method is used to applying the web project,this is a example)
    2017-12-22 15:54:06下载
    积分:1
  • 21days
    说明:  21天学会java的源代码 它让你轻松学会java 编程 让你轻松成为一个java 程序员(21 days Institute java source code it lets you easily learn java programming lets you easily become a java programmer)
    2006-03-24 18:25:33下载
    积分:1
  • Jspkaoshixitong
    jsp考试管理系统,呵呵我的毕业设计主题,可是我好几星期的心血哦,千万不要错过哦(jsp Examination Management System, Oh my graduation design theme, but my good weeks of effort Oh, Do not miss oh)
    2007-04-10 02:38:39下载
    积分:1
  • Java-and-database
    说明:  Java与数据库,能用applet小程序或frame最好,建立数据库,创建表,进行简单的查询,删除,修改即可(Java and database)
    2011-03-29 15:06:03下载
    积分:1
  • fft-java
    java平台下的FFT变换,实现通过RR间期计算HRV频域分析(FFT transform java platform, to achieve a frequency domain HRV calculated by the RR interval analysis)
    2015-11-14 19:09:59下载
    积分:1
  • xws-security-3.0
    xws-security-3.0 ws安全包3.0版本(xws security 3.0 for development)
    2014-04-23 16:57:39下载
    积分:1
  • school
    这是本人的j2ee期末课程设计,是根据校方需求,为其所作的学校事务及教学信息管理系统,可以进行后台登陆的增删改查。功能比较完善。(This is the end of my j2ee curriculum design is based on school needs, for the school affairs and teaching information management system, can change the background investigation landing deletions. Function relatively perfect.)
    2009-12-28 09:10:45下载
    积分:1
  • 管理
    说明:  一个类似的日历,数据表的设计。我想了很久,也没有找到一种好办法。如果象Google calendar 一样,可添加月,周,日重复。。数据库里面,我想应该只有一条记录。(A similar calendar, data table design)
    2020-06-24 02:40:02下载
    积分:1
  • SerachEngine
    利用Lucence,搜索引擎的基本实现,刚学习搜索引擎的鞋童可以参考,我自己的作业。(Use Lucence, search engine basically, just to learn search engine shoes children can refer to my own work.)
    2011-11-20 20:38:59下载
    积分:1
  • 696518资源总数
  • 105111会员总数
  • 25今日下载