接口常量值可被修改
来源:互联网 发布:mysql 查看当前连接数 编辑:程序博客网 时间:2024/05/01 19:47
package com.wanju.project001.zonghe.test;
public class TestInterface implements MM {
public static int a = 6;
public static void main(String[] args) {
MM mm = new TestInterface();
System.out.println(a);
System.out.println(TestInterface.a);
System.out.println(mm.a);
}
}
interface MM {
int a = 5;
public class TestInterface implements MM {
public static int a = 6;
public static void main(String[] args) {
MM mm = new TestInterface();
System.out.println(a);
System.out.println(TestInterface.a);
System.out.println(mm.a);
}
}
interface MM {
int a = 5;
}
package com.wanju.project001.zonghe.test;
import com.sun.accessibility.internal.resources.accessibility;
public class TestAbstractClass extends NN {
public static int a = 6;
public static void main(String[] args) {
NN test = new TestAbstractClass();
System.out.println(a);
System.out.println(TestAbstractClass.a);
System.out.println(test.a);
}
}
abstract class NN
{
public static int a = 5;
}
0 0
- 接口常量值可被修改
- 强制修改常量值
- C++ const常量值的修改
- C++中修改常量值的方法
- 常量值
- “初始化”: 截断常量值
- maximo 字段常量值
- WMsg参数常量值
- 使用常量值
- java当修改final对象、常量值时要重新编译类
- C++全局变量值被修改
- Windows message 消息常量值
- Android中颜色常量值
- 字符串不变性和常量值
- constants 常量值的使用
- 与路由相关的常用度量值
- 通过config配置文件存储常量值
- js中特殊数值常量值
- 朴智妍 我的女神
- ubuntu14.04下nessus的安装
- 最严格的身份证校验(Java版)
- HDOJ 1512 Monkey King -- 左偏树
- 看门狗超时前在内核打印信息
- 接口常量值可被修改
- win7旗舰版64位占了20多G的内存的清理方法
- apache自带的ab压力测试工具用法详解
- Uva 11475 : Extend to Palindrome(Hash或KMP)
- android 各种控件颜色值的设置(使用Drawable,Color)
- Wayland的HDC:cairo绘图库
- 无语啊 郁闷死我了
- 2014 百度之星题解 1002 - Disk Schedule
- Linux系统的启动流程