登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • SerialPort
    简单的串口通信数据显示demo 简单实用 可以学习查看(A simple serial communication data display demo simple and practical Can learn to see)
    2018-05-13 11:25:21下载
    积分:1
  • LodeRunner-Source
    Played a very sweet as possible remained the member of my sons dirty my time
    2013-07-19 15:48:56下载
    积分:1
  • JAVA-programming
    本书介绍了java语言的基本特性,包括字符串、选择、小应用程序以及异常等内容。与一般书籍不同的事,本书用大量的示例说明了java语言的语法、特性等,特别适合与刚刚接触java的学生,使其在实战中锻炼java语言的开发技巧。(This book introduces the basic features of java language, including strings, select, small applications, and exceptions and so on. Different things with the general books, book with plenty of examples illustrate the syntax of the java language, characteristics, especially for students and new to java, java training in actual combat to the development of language skills.)
    2011-11-08 13:36:43下载
    积分:1
  • java3
    java的课程实验,适合初学者。 都是上java专业课时候的实际实验内容,有源码。这是第三部分(完结)(java course experiments, suitable for beginners. When specialized courses are on the java content of the actual experiment, there is source code. This is the third part (End))
    2009-11-01 01:23:38下载
    积分:1
  • LineIterator
    Line Iterator implements Iterator Source Code for Andriod.
    2014-01-23 11:05:51下载
    积分:1
  • SyncResult
    This class is used to communicate the results of a sync operation to the SyncManager. Based on the values here the SyncManager will determine the disposition of the sync and whether or not a new sync operation needs to be scheduled in the future.
    2013-12-11 13:17:28下载
    积分:1
  • ppt
    基于java搜索引擎开发流程与实践ppt,主讲老师罗刚(java Search engine ppt)
    2015-06-12 10:42:52下载
    积分:1
  • FileTest
    file种方法使用实例。在系统当前目录下生成文件,并获得文件的属性信息,最后当JVM结束时删除所创建的文件。(The file method uses the instance. In the current directory file system, and obtain the attribute information file, delete the last when creating JVM at the end of the file.)
    2013-03-28 18:55:14下载
    积分:1
  • tss
    一个吞食蛇得游戏,用JAVA写的。7KB大小,学习的可以下载看下(Snake swallowed a very game, written using JAVA. 7KB size, learning can be downloaded Kanxia)
    2009-11-17 21:27:03下载
    积分:1
  • HttpClient
    httpclient 连接池 请求 需要连接池的jar包(httpclient connection pool connection pool request requires jar package)
    2015-08-27 21:13:13下载
    积分:1
  • 696518资源总数
  • 106253会员总数
  • 14今日下载