mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-23 07:14:21 +07:00
17 lines
325 B
Java
17 lines
325 B
Java
public class A {
|
|
public final MyBase myDelegate;
|
|
|
|
public A() {
|
|
myDelegate = new MyBase(27);
|
|
}
|
|
|
|
private class MyBase extends Base {
|
|
public MyBase(int i) {
|
|
super(i);
|
|
}
|
|
|
|
public void methodToOverride() {
|
|
System.out.println("Hello from B");
|
|
}
|
|
}
|
|
} |