登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • HuaWei_Design
    华为内部程序设计培训文档。 值得学习一下。。。
    2009-11-20 18:10:13下载
    积分:1
  • jsp_shop
    网上交易系统的源代码 实现过程 采用STRUTS框架(Online trading system to achieve the process of source code using STRUTS framework)
    2009-07-13 17:45:58下载
    积分:1
  • ImportNode
    The "importNode(importedNode,deep)" method for a Document should import the given importedNode into that Document.
    2013-11-19 09:59:24下载
    积分:1
  • modbus-master
    说明:  通过串口解析MODBUS协议 读开关量型的输入信号 读保持寄存器上的内容 批量写数据到保持寄存器(Resolving MODBUS Protocol through Serial Port Input signal of reading switch type Read and hold registers Write data in batches to hold registers)
    2020-06-23 20:40:01下载
    积分:1
  • CounterPanel
    A panel with test run counters.
    2014-02-18 09:44:45下载
    积分:1
  • thinking_in_java
    说明:  作为java教学的经典教材之一。本版是第二版,中文描述(java)
    2010-04-20 15:06:22下载
    积分:1
  • 74240977
    Contains the generics, enumerations, static imports, automatically split open a case, using the foreach, variable parameter, such as reflection
    2017-05-29 12:46:47下载
    积分:1
  • java_pic
    使用java技术操作图片,文字,可以给图片加水印等功能(Using java technology operating picture, text, you can add watermarks and other features to the picture)
    2015-08-29 10:44:25下载
    积分:1
  • cs
    用JAVA编写的模拟客户端与服务器端的通信(Simulated using JAVA client and server communication)
    2013-07-10 09:20:54下载
    积分:1
  • toPdfUtils-master
    多种方式实现java word转pdf的demo ,支持docx(Various ways to convert from word to pdf ,supporting docx)
    2020-11-14 11:59:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载