登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • apache-maven-3.5.3-bin
    说明:  Apache的maven本地化工厂,项目的搭建和管理jar包。(Apache's Maven local chemical plant)
    2018-05-01 17:23:37下载
    积分:1
  • Eclipse
    多语言程序设计环境Eclipse学习教程,较多用于Java开发。(Multi-language programming environment Eclipse tutorials, mostly used for Java development.)
    2013-12-13 01:07:25下载
    积分:1
  • LiveStream
    Live stream is an application for live mobile streaming. Download today
    2013-09-18 19:07:09下载
    积分:1
  • agentlist.rar
    用JAVA开发的售票系统希望能通过,(with JAVA development of the ticketing system hope that through, thank you)
    2006-10-16 21:48:00下载
    积分:1
  • lda-0.2-matlab
    暂时放置在java中 lda的 还是不错的(lda em matlab)
    2014-09-28 17:33:09下载
    积分:1
  • talking
    java版的聊天软件,用于学习java的socket网络编程(java Chat Software)
    2013-12-05 15:06:58下载
    积分:1
  • java-qq
    java写的qq聊天软件 带有客户端和服务端(qq chat software written in java client and server with)
    2011-10-01 13:11:56下载
    积分:1
  • bvhplay-1.00-sourcecode.tar
    sourcecode.tar. that is a player for bvh mocap by bvhplay.the file is bvhplay-1.00-sourcecode.tar. that is a player for bvh mocap by bvhplay.(the file is bvhplay-1.00-sourcecode.tar. that is a player for bvh mocap by bvhplay.the file is bvhplay-1.00-sourcecode.tar. that is a player for bvh mocap by bvhplay.)
    2014-01-06 23:13:08下载
    积分:1
  • jpasswordfield
    Determines the Password
    2012-02-14 14:35:31下载
    积分:1
  • 23-kinds-of-Java-design-patterns
    23中Java设计模式 很详细地介绍了Java的23种设计模式 适合初学者(23 kinds of Java design patterns Very detailed introduces the 23 kinds of Java design patterns For beginners)
    2015-11-28 17:06:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载