登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • sonrcxcode
    鼠标的控制和优化的几个很好的小程序的源代码,对鼠标好些功能都作了设计,(The mouse control and optimization of several good small program source code, all the better for the mouse function design,)
    2017-05-30 23:14:07下载
    积分:1
  • MineSweeper
    Java 实现的扫雷小程序,有可爱的图片贴图。(java mine sweeper)
    2013-09-27 09:25:05下载
    积分:1
  • Java 窗口序Demo
    海康威视 java 窗口程序 demo(hikivision java demo)
    2018-01-28 15:57:41下载
    积分:1
  • BUAA_2019_OO_CODE
    说明:  2019北航面向对象课设12个项目的代码(BUAA 2019 Object Oriented CODE)
    2020-06-16 02:00:01下载
    积分:1
  • jspPdb
    jsp网页连接数据库(access),并进行读写操作。这是一个典型实例,针对的是学生基本信息内容读写。(jsp page connect to the database (access), and read and write operations. This is a typical example, is for students to read and write basic information content)
    2013-11-15 21:57:21下载
    积分:1
  • DB
    银行管理系统登录封装,里面还有数据库连接,用时方便直接调用即可(Bank management system login package, there is also a database connection can be called directly, with convenient)
    2013-05-13 22:55:47下载
    积分:1
  • Randomintgenerator
    Randomintgenerator.java is a java example to practice your java programming
    2009-06-03 19:36:54下载
    积分:1
  • Java_compressfile
    一个简单的文件压缩解压缩工具(JAVA语言)(脪 禄赂 枚 录 貌渭 楼 渭脛脦脛 录 镁脩 鹿 脣玫 陆 芒脩 鹿 脣玫 鹿 陇 戮 脽 拢 篓 JAVA脫茂脩脭 拢 漏)
    2008-08-22 11:00:48下载
    积分:1
  • JAVA54646
    说明:  JAVA案例开发集锦//JAVA案例开发集锦.rar(JAVA development allehanda case// JAVA development allehanda case. Rar)
    2008-11-28 10:40:05下载
    积分:1
  • ADesignOfp2pFileSearchSystem
    一个基于JXTA的P2P文件搜索系统的实现,对于研究p2p搜索算法很有帮助.(Based on JXTA)
    2007-10-10 20:29:12下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载