登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • src
    简单的ping实现,包括界面的展现,ping 的结果显示(easy ping command )
    2013-10-23 11:41:48下载
    积分:1
  • chartroom
    JAVA版的聊天界面,方便局域网的人进行聊天(JAVA version of the chat interface, convenient LAN chat)
    2012-06-19 11:00:55下载
    积分:1
  • rzgisters__getter__performance
    Emulator:1. The information flow process of the OSI reference model: a simulation program is designed to explain the flow of information flow in the OSI reference model and the function of each layer. modulation and
    2019-03-25 21:52:32下载
    积分:1
  • juint
    junit单元测试用例的编写 采用的是mockMvc 测试控制器(JUnit unit test case)
    2020-06-18 08:00:02下载
    积分:1
  • JiNing
    GIS数据批量导入sde 目前支持shp,coverage,栅格数据批量导入到sde中,可指定目标数据集名称、输出的要素类名称,如果sde中已有该图层数据,则继续追加(GIS data sde currently supports the bulk import shp, coverage, raster data into sde quantities, you can specify the target data set name, the output feature class name, if already in the sde layer data, will continue to additional)
    2020-08-14 09:38:29下载
    积分:1
  • enumeration
    This project is the techniques that represent the ennumeration technique completely based on java technology
    2013-11-20 13:52:11下载
    积分:1
  • ZFService
    监听手机的消息通知,如微信,qq,等应用消息和通知(Monitor mobile phone notifications)
    2020-06-24 14:20:01下载
    积分:1
  • jsp+servlet+jdbc
    jsp + servlete + jdbc开的管理系统()
    2007-09-04 14:21:25下载
    积分:1
  • eshop
    一个简单的网上商城系统 用到JSP +mysql+ssh(JSP+mysql+ssh)
    2015-07-02 09:29:46下载
    积分:1
  • _Bits
    Test the class {@code com.android.dx.util.Bits} for Java.
    2013-10-02 01:36:01下载
    积分:1
  • 696518资源总数
  • 105289会员总数
  • 8今日下载