登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • HibernateREF
    hibernate开发参考手册,适合使用hibernate进行开发的开发人员,简单易懂,也适合初学者(hibernate development of the reference manual, suitable for the use of hibernate for the development of the Developer is simple to understand, is also suitable for beginners)
    2006-12-14 01:57:01下载
    积分:1
  • tut-rest-master
    You re creating an API that clients need to consume across the web. You want to open up your organization s data to consumption by varied clients across the web. You need to integrate your application with other applications inside your own organization, but you don t have control over the languages, tools, or frameworks for those applications.
    2014-03-18 11:30:50下载
    积分:1
  • ChinaMobile
    这是我在东方标准学习的时候做的一个项目,是中国移动的一个子管理任务模块,采用MVC模式设计,调试成功。(This is my standard in the east to learn to do when a project is a subset of China Mobile Management mission modules, the use of MVC design patterns, debugging success.)
    2008-08-21 09:03:02下载
    积分:1
  • CalculatorService
    This is calcute the age of the persons.
    2017-10-31 20:11:21下载
    积分:1
  • moon-master
    moonmaster user develop font
    2020-06-20 13:20:01下载
    积分:1
  • wkjava
    翁剀JAVA语言那门课程的教案 很多人都看多他的视频教程可惜没有ppt的教案,终于找到了(Weng Kai Java language course that the lesson plans many people have read his Video Guide Unfortunately ppt Education has finally found)
    2007-01-11 14:23:56下载
    积分:1
  • 83257544
    能够准确读取flash以及jpg,gif,bmp等格式文件的大小()
    2018-05-15 18:40:04下载
    积分:1
  • Linux命令行与shell脚本大全.第3版
    说明:  java 入门到精通 从最简单的开始讲到最后的框架(java Entry to mastery Programming development)
    2021-01-04 16:30:22下载
    积分:1
  • mybatis02
    纯练习式mybatis,第二节小练习,适合初学者,还会第三节,期待下载(Pure exercise type mybatis, Section II small exercises, suitable for beginners, but also the third quarter, and look forward to download)
    2014-09-01 22:23:09下载
    积分:1
  • jFuzzyLogic
    java 实现的 模糊控制的代码库 可以java直接调用,解压缩为jar包(java fuzzy logic)
    2014-08-26 17:06:39下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载