登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • 1
    说明:  SOA 是一种 IT 体系结构样式,支持将您的业务作为链接服务或可重复业务 任务进行集成,可在需要时通过网络访问这些服务和任务。(SOA is an IT architectural style, support your business as linked services, or can be integrated repeat business task, you can access these services when needed and tasks over a network.)
    2014-04-25 14:26:30下载
    积分:1
  • swing-inspector-1.2.1
    网络浏览器,java编写,swing做的界面,可以实现基本的上网。(Web browser, java prepared, swing interface, you can access the basic implementation.)
    2013-12-12 17:02:04下载
    积分:1
  • 20121216100444473
    为JAVA开发的UML语言手册,为大型应用开发者提供参考。(UML language manual developed for JAVA, for large application developers to provide reference.)
    2017-08-23 10:27:12下载
    积分:1
  • java-90
    本资源提供了java90道编程题目,包括50道基础编程题、40道经典java算法题、50道最新的题目,并附答案。可以增加面试技巧。(The resources to provide a java90 Road programming topics, including the 50 basic programming questions, 40 classic java algorithm questions, 50 of the latest topics with answers. You can increase the interviewing skills.)
    2012-10-28 17:09:32下载
    积分:1
  • SocketTest
    socket测试程序,java代码,android studio平台(socket test for andriod (java))
    2019-06-25 14:19:16下载
    积分:1
  • LFMAlgorithm
    可发现重叠节点的社区发现 LFM 算法,算法基于java实现(LFM algorithm)
    2020-12-15 17:39:13下载
    积分:1
  • JSP_mtc_server_remote_control
    服务器远程控制,tomcat jsp 有说明文档(server remote control ,tomcat jsp, help document.)
    2009-04-20 16:33:05下载
    积分:1
  • java实现的P2P即时聊天序(源码+文档+jar运行包)
    一个简单的P2P即时聊天系统,实现功能如下: 1) 点对点的单人聊天 2) 多人同时聊天 3) 用户可以自由加入和退出
    2019-06-29下载
    积分:1
  • CreateVCFfromExcle
    将excle表格中的电话和身份信息导出为VCF格式的手机通讯录文件,可以通过豌豆荚导入到手机中(Phone excle form and identity information phone address book file, exported as VCF format can be imported into pea pods phone)
    2012-09-25 11:33:15下载
    积分:1
  • StringUtil
    String 辅助工具类,提供一些常用的方法,包括非空判断、中文字符判断、电话号码(手机号码、邮箱)校验等(String Utils)
    2013-06-29 10:27:41下载
    积分:1
  • 696518资源总数
  • 104226会员总数
  • 29今日下载