mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
23 lines
453 B
Java
23 lines
453 B
Java
abstract class DemoInvertBoolean {
|
|
|
|
boolean b;
|
|
|
|
DemoInvertBoolean(boolean <caret>b) {
|
|
this.b = b;
|
|
}
|
|
|
|
DemoInvertBoolean() {
|
|
this(true);//this true will be inverted
|
|
}
|
|
|
|
abstract void f1();
|
|
|
|
public static void main(String[] args) {
|
|
DemoInvertBoolean demo = new DemoInvertBoolean(true) {//this true will not be inverted
|
|
@Override
|
|
public void f1() {
|
|
|
|
}
|
|
};
|
|
}
|
|
} |