登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • Libro
    Curso de programación en Java (Versión 6, JDK 1.6.0) Nivel básico Manual del alumno
    2010-11-27 05:51:31下载
    积分:1
  • Java-Web-Development
    本人学习java web开发时的读书笔记,可供初学者参考学习J2EE编程知识,迅速建立相关的知识结构。(I am learning java web development study notes, reference for beginners to learn J2EE programming knowledge to quickly build the knowledge structure.)
    2013-05-18 01:52:42下载
    积分:1
  • MediaPalyer
    多媒体播放器,包含界面建立,以及代码实现。(Multimedia player, including the interface to create, as well as code.)
    2013-12-12 23:56:50下载
    积分:1
  • socket-demo
    使用socket,局域网通过IP模拟简单聊天功能(Using socket, a simple chat feature)
    2015-12-03 20:02:14下载
    积分:1
  • ReadCSV
    Java beans for read data from CSV file
    2014-02-04 18:39:15下载
    积分:1
  • Struts_Students
    应用Struts1框架完成的登录增删改查等基本功能(Struts1 complete application framework login CRUD basic functions)
    2015-03-15 22:03:54下载
    积分:1
  • compiled-machine
    一个自动代码生成工具。它能读入“myapproval.sql”里的“account”和“authority”的建表语句,分别自动生成如“AccountModel.java”和“AuthorityModel.java”Model类对象的源代码。(An automatic code generation tool. It reads " myapproval.sql" in the " account" and " authority" of the build table statement is automatically generated as " AccountModel.java" and " AuthorityModel.java" Model class object' s source code, respectively.)
    2014-05-04 00:56:39下载
    积分:1
  • Policy
    Answers a Policy object with the specified type and the specified parameter.
    2013-11-26 15:04:56下载
    积分:1
  • 2597708
    本程序用于词法分析:从DOS界面输入一行的C语句,并以#号结尾(注意必须以这个为结束标志,否则出错,要求输出对应的单词的()
    2017-10-14 22:43:51下载
    积分:1
  • CoreJava
    经典的Java学习材料电子版,Core Java 2 Volume II。Prentice Hall公司出版的(Classic electronic version of Java learning materials, Core Java 2 Volume II. Published by Prentice Hall Inc.)
    2008-04-10 23:46:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载