登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • ManagerTeaching
    Structs2+Spring+Ibatis入门(Structs2+Spring+Ibatis new study)
    2014-01-14 15:16:18下载
    积分:1
  • JavaMail
    用JavaMail实现邮件发送。用户验证及附件(Send e-mail using JavaMail achieve. User authentication and accessories)
    2014-02-27 09:53:08下载
    积分:1
  • XSSH0
    这是一个有关易语言XSSH0的源码,同学们可以参考的(This is a source language for easy language SqliteSJKJQ, students can refer to)
    2017-02-20 18:36:41下载
    积分:1
  • MobileCalendar
    一个可以用于实现手机日历功能的java小程序,自带了一个演示(Can be used to realize a function of the phone calendar java applet, bring a demo)
    2007-10-23 16:01:16下载
    积分:1
  • j
    说明:  java 计算器,实现了基本的简单计算器所有功能,包括加减乘除,MCM+MS,sin,cos,tan等(java calculator, basic and simple calculator all functions, including Math, MCM+MS, sin, cos, tan)
    2016-02-18 16:40:37下载
    积分:1
  • tiaoxinma
    自己写的二维条形码的读取和输出,即可以根据信息输出为二维码,也可以读出二维码的信息。是一个工程文件,用eclipse即可运行。(Write their own 2D bar code read and output according to the information output for the two-dimensional code can also read out the two-dimensional code information. Is a project file to run, with the eclipse.)
    2012-07-23 09:28:30下载
    积分: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
  • FIR-coding
    this is a java based FIR application where police register FIR .
    2012-09-23 13:25:50下载
    积分:1
  • mypetstore
    宠物商城 是一个学习的好教材 javascript(Pet store is a good learning materials)
    2014-02-22 16:27:52下载
    积分:1
  • rec
    Java实现将movielens各种规模数据的划分为测试集和训练集(Split movielens dataset to trainset and test set)
    2015-04-18 22:18:49下载
    积分:1
  • 696518资源总数
  • 104983会员总数
  • 23今日下载