登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • fileapp
    将位图转换成 ASCII码 读文件源码部分(will bitmap into ASCII source of reading documents)
    2007-03-20 21:51:28下载
    积分:1
  • 本草纲目
    详细本草纲目的汉语access数据库mdb(benchaogangmu chinese database access pinyin)
    2018-10-19 11:50:30下载
    积分:1
  • JAVA-calculator
    JAVA-计算器JAVA-calculator JAVA-calculator (JAVA-Calculator JAVA-calculator JAVA-calculator)
    2013-03-10 13:55:06下载
    积分:1
  • 传智播客毕向东java上课PPT及源码
    说明:  传智播客毕向东Java学习PPT及源码学习资料(Learn PPT and source code learning materials from Bi Xiangdong Java)
    2020-10-14 19:17:30下载
    积分:1
  • Pre-Alpha07
    演化博弈代码,基于netlogo,java语言开发,用于演化博弈仿真建设(Evolutionary game)
    2020-06-29 01:00:02下载
    积分:1
  • 数据压缩与传输
    说明:  Java数据压缩与传输实例,可以学习一下实例化套按字、得到文件输入流、压缩输入流、文件输出流、实例化缓冲区、写入数据到文件、关闭输入流、关闭套接字关闭输出流、输出错误信息等(Java data compression and transmission examples, you can learn to instantiate sets of words, get file input stream, compressed input stream, file output stream, instantiate buffer, write data to file, close input stream, close socket and close output Stream, output error message, etc.)
    2020-04-21 08:10:14下载
    积分:1
  • wekajava
    由java开发的软件包,里面有人工智能所用的很多东东,包括神经网络,支持向量机,决策树等分类和回归分析方法,集成化软件哦(by java development package, which has artificial intelligence used by many of the Eastern, including neural networks, support vector machines, such as decision tree classification and regression analysis)
    2011-01-28 10:01:38下载
    积分:1
  • JAVA
    java基础教程,对于初学者有很大的帮助,是你进行软件行业java方向的最好入门书籍 (Java based tutorial, very helpful for beginners, is the entry you are Java direction of software industry s best books)
    2013-08-08 19:47:54下载
    积分:1
  • jmp123
    是一个MP3 Java播放器。注重在MP3解码上面,使用jmp方式解码,所以无播放页面。但可以通过命令窗口或eclipse运行,播放歌曲。(Is a Java MP3 player. Focus on the MP3 decoder, the use of JMP decoding, so no player page. But you can run through the command window or eclipse, play the song. )
    2016-07-21 13:46:55下载
    积分:1
  • Impl_RowSet
    add Row Set Listener Source Code for Andriod.
    2013-12-13 14:50:27下载
    积分:1
  • 696518资源总数
  • 106010会员总数
  • 4今日下载