-
ClassMemeberPriviledge
实现一个程序,对用户输入的类权限、成员权限、以及使用该类对象的环境与这个类的关系,判断这个环境中能不能访问这个类的这个成员。
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.)
- 2013-04-01 20:00:25下载
- 积分:1
-
Lab8_v0.3
java+mysql+tomcat 开发的程序 用户管理(java+mysql+tomcat procedures developed user management)
- 2012-05-27 17:17:11下载
- 积分:1
-
UDPTalker
说明: 一个简单的P2P聊天程序,使用java开发,基于UDP,可以穿越锥形内网,可以方便的扩展成多种用途.(a simple peer-to-peer chat program, the use of java development, based on UDP, to pass through the network within the cone can be easily expanded into a multi-purpose.)
- 2006-03-22 15:02:18下载
- 积分:1
-
simplejavaprogramming
题目:打印出杨辉三角形(要求打印出10行题目:输入3个数a,b,c,按大小顺序输出。
题目:输入数组,最大的与第一个元素交换,最小的与最后一个元素交换,输出数组。
题目:有n个整数,使其前面各数顺序向后移m个位置,最后m个数变成最前面的m个数
题目:编写一个函数,输入n为偶数时,调用函数求1/2+1/4+...+1/n,当输入n为奇数时,调用函数1/1+1/3+...+1/n(Topic: Print out the Triangle (10 lines required to print out the Title: Enter the 3 numbers a, b, c, according to the order of output. Title: input array, the largest exchange with the first element, the smallest and the last element of the exchange, output array. Topic: There are n integers, to move back in front of the order m of the number of positions, finally becoming the foremost m m the number of number of topics: write a function, the input n is even, the call function evaluation 1/2+1/4+...+ 1/n, when the input n is odd, call the function 1/1+1/3+...+ 1/n)
- 2011-05-09 19:11:58下载
- 积分:1
-
korrecvJavadecompression
java的解压缩程序,希望大家批评指正,多发表意见(Java decompression procedures, hope everyone animadversion correct, much comment)
- 2017-03-18 14:53:44下载
- 积分:1
-
java socket入门 实例源码下载
很简单的java socket例子 需要用到mysql数据库
- 2015-05-21下载
- 积分:1
-
Hibernate-code
深入浅出Hibernate源码,学习hibernate的好资料(Hibernate code)
- 2014-02-20 15:22:41下载
- 积分:1
-
sort
石油地震勘探数据处理模块(Java)
数据集合分选(Oil&Gas exploring - seismic data processing modules(java)
data sorting part)
- 2018-06-25 14:39:27下载
- 积分:1
-
key
说明: 用java做的按键精灵,在windows下有全局热键。jar包里面有完整源代码(Wizard button to do with java,can use global hotkeys under the windows. The jar package include full source code.)
- 2011-04-10 08:22:37下载
- 积分:1
-
menu-move
js实现自动向左移动的菜单,当鼠标移动到菜单项时,菜单停止移动。(js automatically move to the left menu, the menu stops moving when the mouse to the menu item.)
- 2012-05-30 22:33:10下载
- 积分:1