登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • Java-learning
    Java的学习笔记,对于初学者来说这是个重点,上手会比较容易(Java learning classical notes)
    2014-04-21 22:50:10下载
    积分:1
  • guyangpigbook[1]
    一个简单的留言板!可以很好的学习学习,初步了解javascript技术!很好的!(A simple message board! Can learn a good preliminary understanding of javascript technology! Very good!)
    2007-12-31 23:53:43下载
    积分:1
  • CorsConfig
    说明:  遇到跨域问题把此java文件加进config类里(Add this java file to the Config class when encountering cross-domain problems)
    2020-06-22 13:40:02下载
    积分:1
  • JSF
    说明:  The C Programming Language若干行代码网络平台输出测试(A "Hello, World!"program generally is a computer program that outputs or displays the message "Hello, World!". Such a program is very simple in most programming languages, and is often used to illustrate the basic syntax of a programming language. It is often the first program written by people learning to code.)
    2020-06-22 14:40:01下载
    积分:1
  • java图书管理系统(源码+Sql Sever数据库+使用说明文档)
    图书馆管理系统是图书馆管理工作中不可缺少的部分,它对于图书馆的管理者和使用者都非常重要,所以图书馆管理系统应该为管理者与读者提供充足的信息和快捷的数据处理手段,但长期以来,人们使用传统的人工方式或性能较低的图书馆管理系统管理图书馆的日常事务,操作流程比较繁琐。一个成功的图书馆管理系统应提供快速的图书信息检索功能、快捷的图书借阅、归还流程
    2019-06-28下载
    积分:1
  • ibatis-class
    java 框架ibatis学习文档下载 绝对值得(ibatis java framework document download is definitely worth learning)
    2013-11-26 17:22:44下载
    积分:1
  • CarModel
    赛车程序:先对赛道和赛车建立模型,再制作GUI和控制算法实现自动驾驶,最终进行统一的系统调度。(Racing procedure: first track and the car model, and then the production of GUI and control algorithm for automatic driving, and ultimately a unified system for scheduling.)
    2008-06-23 18:54:50下载
    积分:1
  • Demo示例
    说明:  海康人脸识别DEMO,JAVA语言编写的,帮你快速入门(Haikang Face Recognition DEMO)
    2019-03-20 15:19:58下载
    积分:1
  • RMI
    一个java程序,介绍rmi的,有助于了解rmi( a code of java,)
    2015-04-11 09:47:12下载
    积分:1
  • 027356-01
    疯狂Java讲义_源码(含Java设计模式CHM).rar(java design chm )
    2013-11-29 12:16:45下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载