登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • DRWRClientV2.0_BETA
    java试题,供java程序员检查自己的学习成果。班门弄斧,主要为了下载一些好的程序(java test)
    2009-02-13 11:11:34下载
    积分:1
  • Flink基础教
    要紧随时代的脚步,学习flink,大数据时代的到来flink会越来越火(we will study flink)
    2018-11-27 16:42:38下载
    积分:1
  • stumanage
    JAVA编写的一个信息管理系统。学生信息管理系统(JAVA prepared an information management system. Student Information Management System)
    2007-12-03 22:04:59下载
    积分:1
  • demo
    说明:  使用A星(a-star)算发,通过上传二维矩阵中不能通过的坐标点,来为起止坐标点计算一条最短可通过路径(Using A-star, a shortest path is calculated by uploading the coordinate points that can not be passed in the two-dimensional matrix.)
    2019-02-10 15:51:27下载
    积分:1
  • MVC
    基于MVC框架的一个增删改查的小列子,处于一个java的开发环境(A framework based on MVC CRUD small Liezi, in a java development environment)
    2013-07-19 21:14:32下载
    积分:1
  • nps1
    这是一个java web的mvc模式开发的新闻发布系统。非常适用。(this is a java web program.it s very useful.)
    2015-01-02 13:09:54下载
    积分:1
  • hibernate-release-4.3.11.Final
    用于java数据开发,hirberbate 框架的开发应用,适合初学者(For Java data development, hirberbate framework for the development and application, suitable for beginners)
    2017-08-03 10:56:38下载
    积分:1
  • calculator
    简单计算器,加减乘除。java程序,可视化。(Simple calculator, subtraction, multiplication and division. java program visualization.)
    2013-11-30 22:42:13下载
    积分:1
  • QueryTask
    A task that gets suggestions from a corpus.
    2014-01-15 10:00:59下载
    积分:1
  • 黑灰化肥灰会挥发发灰黑讳为黑灰花会飞-Cemu_Zh_7.5n
    黑灰化肥灰会挥发发灰黑讳为黑灰花会飞;灰黑化肥会会挥发发黑灰为讳飞花化为灰(Black grey chemical fertilizer ash will volatilize grey black taboo black grey flower will fly; grey black chemical fertilizer will volatilize black ash taboo fly ash)
    2020-06-22 08:00:02下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 31今日下载