登录
首页 » Java » ClassMemeberPriviledge

ClassMemeberPriviledge

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

  • Book
    网上书店,具有搜索,查询,购物车,购买,分类,销售榜的功能(online bookes shopping)
    2011-06-18 10:28:54下载
    积分:1
  • Exe8_4
    设计一个用户登录界面,输入用户名和密码后,点击登录按钮,若用户名为”JavaUser”,密码为”Java1234”,则允许登录,显示“登录成功!”,否则显示“登录失败!”。程序文件命名为Exe8_4.java。(Design a user login screen, enter your user name and password, click the login button, if a user named JavaUser , password is Java1234 , is allowed to login, Login successful! , Otherwise Login failed!. Program file named Exe8_4.java.)
    2015-06-14 18:30:39下载
    积分:1
  • Hibernate3.2
    hibernate3.2中文手册,不错,给大家分享一下(hibernate3.2 Chinese manual to share with you)
    2012-08-15 16:35:42下载
    积分:1
  • 阿凡提蜂拥控制算法java
    说明:  阿凡提蜂拥控制算法 仿真 无人机集群控制可以学学(Avanti swarm control algorithm simulation UAV cluster control can learn)
    2020-05-21 19:48:02下载
    积分:1
  • eshop
    一个简单的网上商城系统 用到JSP +mysql+ssh(JSP+mysql+ssh)
    2015-07-02 09:29:46下载
    积分:1
  • enumeration
    This project is the techniques that represent the ennumeration technique completely based on java technology
    2013-11-20 13:52:11下载
    积分:1
  • p2
    说明:  cpu scheduling using java wwewe
    2010-02-01 21:40:04下载
    积分:1
  • dushigongqiuxinxiwang
    都市供求信息网:基于ssh框架 实现都市需求信息的管理。(City Trade Information Network: ssh-based framework to achieve the urban demand information management.)
    2013-10-14 20:44:44下载
    积分:1
  • Transfer Money.seq.violet
    example seq diagram for java dev
    2019-02-12 08:48:44下载
    积分:1
  • pso
    实现机组负荷优化分配的粒子群算法MATLAB代码(MATLAB Code of Particle Swarm Optimization for Unit Load Distribution)
    2021-04-22 23:38:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载