登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

于 2013-04-01 发布 文件大小:1KB
0 207
下载积分: 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-Program
    点到点通信聊天程序 网络编程 实现客户机与服务器之间通过键盘输入的通信(Commuation Program)
    2011-05-25 22:25:10下载
    积分:1
  • toBook
    Java编程实现二手书交易平台,给大家做个参考(Java programming used book trading platform, to be a reference)
    2013-12-09 19:07:11下载
    积分:1
  • 交通一条道路
    说明:  设计一个交通信号灯类: (1)变量:位置、颜色(红、黄、绿)、显示时间(秒)。 (2)方法:切换信号灯。 创建并启动两个线程(东西向、南北向)同时运行。 3.实验要求 (1)设计线程。 (2)设计路口信号灯示意图界面。 (3)进一步将每个方向的信号灯分成3种车道灯:左转、直行和右转。 (4)根据车流量进行时间的模糊控制。(Design a traffic light class: (1) variables: location, color (red, yellow, green), display time (seconds). (2) Method: switch the signal lamp. Create and start two threads (east-west, north-south) running at the same time. 3. Experiment requirements (1) design thread. (2) Design schematic interface of intersection signal light. (3) Further, the signal lights in each direction are divided into three kinds of lane lights: left turn, straight ahead and right turn. (4) Fuzzy control of time according to traffic flow.)
    2020-05-27 09:21:40下载
    积分:1
  • 20050317161114326
    说明:  java 单机象棋,是一个不错的java 源代码,大家多提议见(java stand-alone chess, is a good java source code, we see more than the proposed)
    2008-10-23 08:22:25下载
    积分:1
  • FIR-coding
    this is a java based FIR application where police register FIR .
    2012-09-23 13:25:50下载
    积分:1
  • ChatQQ
    学好嵌入式,学好java,从最基本的山寨版QQ聊天室开始,该程序已通过测试。。。(good good study,day day up.)
    2013-11-08 20:13:23下载
    积分:1
  • elasticsearch-2.4.4
    可以在web开发中用es集群缓存数据,替代数据库,提高效率(You can use elasticsearch)
    2020-06-16 13:00:01下载
    积分:1
  • ProfilerProcessor
    @fileoverview Profiler processor is used to process log file produced by V8 and produce an internal profile representation which is used for building profile views in "Profiles" tab.
    2014-01-12 09:26:30下载
    积分:1
  • java-control-LED
    java 编写的一个控制LED显示屏的工具(java control what appear on led.)
    2014-09-03 15:56:52下载
    积分:1
  • spring03-2
    说明:  开发示例,一段小程序,spring config配置文件,设置相关property(faDevelop an example, a small program, spring config configuration file, set related properties)
    2019-02-19 11:38:45下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载