权限修饰符:private,默认,protected,public
状态修饰符:static,final
抽象修饰符:abstract
常见的类及其组成的修饰
类: 默认,public,final,abstract
常用:public
成员变量:private,默认,protected,public,static,final
常用:private
构造方法:private,默认,protected,public
常用:public
成员方法:private,默认,protected,public,static,final,abstract
常用:public
常见的组合:
public static final int X = 10;
public static void show() {}
public final void show() {}
public abstract void show();
|
|