登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • PDBView
    PDBView是一个可以查看palmOS执行包*.pdb(类似于java包*.jar)结构的小工具()
    2007-08-29 13:07:50下载
    积分:1
  • java设计
    说明:  Java课程设计-坦克大战,包含源码和完整的文档。(Java Course Design-Battle of Tanks, including source code and documentation.)
    2019-12-09 09:11:47下载
    积分:1
  • Librarian
    说明:  java docuument for libraay
    2020-06-23 16:20:02下载
    积分:1
  • itmuch-spring-cloud-study-master
    说明:  操作简单的Mongodb网页web管理工具,基于Spring Boot2.0支持mongodb集群(Simple operation of mongodb web management tools, based on spring boot2.0 support mongodb cluster)
    2021-04-05 22:54:33下载
    积分:1
  • Eclipse_pdf
    说明:  对于初学JAVA语言的人来说,经常对eclipse这个开发工具的使用很不熟悉,这个PDF文件可以帮助你进行很好的了解和掌握(JAVA language for beginner people, often eclipse the use of development tools is very familiar with, this PDF document can help you carry out a very good understanding and knowledge of)
    2008-11-17 09:04:11下载
    积分:1
  • regress-85880
    Arguments object of g(){f()} should not be null.
    2014-02-13 12:08:59下载
    积分:1
  • SecurityPolicyTests
    This is a series of unit tests for backup/restore of the SecurityPolicy class.
    2014-02-18 14:55:04下载
    积分:1
  • day03_pm
    java培训笔记,第三天可以学习的内容,适合刚理解java,0基础的学java的学员(java training notes, you can learn the contents of the next day, for just understand java, 0-based learning java trainee)
    2013-09-02 18:14:27下载
    积分:1
  • rfc7033.tar
    Plain text version of RFC 7033 describing the WebFinger protocol.
    2014-06-29 12:20:09下载
    积分:1
  • CPPCAR
    本文件是在VISUAL C++环境下开发的汽车货运管理系统,感兴趣的可下载。(This document is in the VISUAL C++ development environment trucking management system, interest can be downloaded.)
    2015-03-12 22:27:23下载
    积分:1
  • 696524资源总数
  • 103938会员总数
  • 55今日下载