mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
25 lines
440 B
Java
25 lines
440 B
Java
public class Test {
|
|
public int anObject;
|
|
public void method() {
|
|
}
|
|
}
|
|
|
|
public class Test1 extends Test {
|
|
public void method() {
|
|
System.out.println(<selection>1 + 2</selection>);
|
|
System.out.println(anObject);
|
|
}
|
|
}
|
|
|
|
public class Test2 extends Test1 {
|
|
public void method() {
|
|
System.out.println(anObject);
|
|
}
|
|
}
|
|
|
|
public class Usage {
|
|
{
|
|
Test t = new Test2();
|
|
t.method();
|
|
}
|
|
} |