登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • Baozoumanhua
    Java swing暴走漫画网站内容按照日期进行下载。添加浏览功能(Baozoumanhua comic downloads and browsing)
    2013-08-30 17:21:31下载
    积分:1
  • zhuawangye
    说明:  抓取网页的简单java代码,可以用来学习或者入门(Simple java code to crawl pages that can be used to study or entry)
    2011-03-24 17:29:06下载
    积分:1
  • TallerMecanico
    Ejemplo taller mecanico Java (netbeans)
    2012-11-24 04:29:41下载
    积分:1
  • java
    给学JAVA的一些提示和警告,帮助学习和使用java,新手必读( )
    2014-01-14 12:16:48下载
    积分:1
  • h9wmrj-v7.0
    不多说了同上来估wqrwqrwqdwfdvdfdfdf(dwqdwqdwqrdwqrwqfwefwes)
    2018-08-08 14:05:20下载
    积分:1
  • kechengsheji
    有关数据库,我认为数据库很重要,要认真学,我上传的是我们老师给我们的东西,你们看看对你们有用吗?(The database, I think the database is very important to carefully study, I uploaded is our teacher gave us something, you look to you useful?)
    2010-11-09 21:34:41下载
    积分:1
  • bbs
    一个用Spring+Struts+hibernate整合的BBS项目,使用MySQL数据库进行数据存储,发布在Tomcat服务器上。(With a Spring+ Struts+ hibernate integration BBS project, using a MySQL for data storage, published on the Tomcat server.)
    2016-04-30 09:58:52下载
    积分:1
  • CProIssue
    数字证书注册和签发系统,利用JCA和JCE实现数字证书的注册,并提供一个密钥库管理以及私钥的存储和导出以及传输得安全机制(Digital certificate registration and issuance system, the use of JCA and JCE realize digital certificate registration, and provide a key database management, and private key storage and export, as well as a security mechanism for transmission)
    2007-07-25 11:36:10下载
    积分:1
  • eclipsestudy
    java开发工具-eclipse 的中文教程(Chinese eclipse tutorial)
    2011-11-17 18:01:28下载
    积分:1
  • Publisher_Manager
    一套基于数据库开发的个人出版物管理系统, 使用Hibernate来进行持久化, 数据库连接选用MySQL, 使用java 和 ant来进行连接。 使用JUnit进行测试。 包含源代码、需求分析、文档和测试代码。(A set of publications based on database management systems developed by individuals, using Hibernate to carry out persistence, database connection use MySQL, the use of java, and ant to make a connection. The use of JUnit for testing. Contains the source code, requirements analysis, documentation and test code.)
    2009-11-23 16:51:54下载
    积分:1
  • 696516资源总数
  • 106457会员总数
  • 15今日下载