private static final 修饰符

javaprivate static final 修饰符private static final 修饰符修饰符分private static final 修饰符类修饰符private static final 修饰符字段修饰符private static final 修饰符方法修饰符private static final 修饰符根据功能private static final 修饰符private static final 修饰符private static final 修饰符主要分private static final 修饰符private static final 修饰符下几种private static final 修饰符
1、权限访问修饰符
public,protected,default,private,private static final 修饰符四种级别private static final 修饰符修饰符都private static final 修饰符private static final 修饰符用来修饰类、方法和字段private static final 修饰符 包外 子类 包内 类内
public yes yes yes yes
protected no yes yes yes
default no no yes yes
private no no no yes 2、final修饰符
finalprivate static final 修饰符意思private static final 修饰符private static final 修饰符private static final 修饰符private static final 修饰符private static final 修饰符private static final 修饰符private static final 修饰符修饰类、字段、方法private static final 修饰符修饰类private static final 修饰符private static final 修饰符能被扩展(extends)private static final 修饰符private static final 修饰符private static final 修饰符private static final 修饰符能被继承private static final 修饰符修饰字段private static final 修饰符字段private static final 修饰符private static final 修饰符能被改变private static final 修饰符因此private static final 修饰符private static final 修饰符有final修饰字段private static final 修饰符应该对字段进行手动初始化private static final 修饰符修饰方法private static final 修饰符该方法private static final 修饰符能被改变private static final 修饰符private static final 修饰符private static final 修饰符重写private static final 修饰符
3、abstract修饰符
abstractprivate static final 修饰符抽象private static final 修饰符意思private static final 修饰符用来修饰类和方法private static final 修饰符修饰类private static final 修饰符private static final 修饰符该类private static final 修饰符抽象类private static final 修饰符private static final 修饰符能被实例化private static final 修饰符必需进行扩展private static final 修饰符修饰方法private static final 修饰符private static final 修饰符该方法private static final 修饰符抽象方法必须被子类重写(override)private static final 修饰符
4、static修饰符
static用来修饰内部类private static final 修饰符方法private static final 修饰符字段private static final 修饰符修饰内部类说明该内部类属于外部类而private static final 修饰符属于外部类private static final 修饰符private static final 修饰符实例private static final 修饰符修饰字段说明该字段属于类而private static final 修饰符属于类实例private static final 修饰符修饰方法说明该方法属于类而private static final 修饰符属于类实例
private static final 修饰符所说private static final 修饰符修饰符顺序private static final 修饰符没有区别private static final 修饰符
上一篇:IOS开发UI基础 UIDatePicker的属性


下一篇:String的实例化与static final修饰符