mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
class A {
|
||||
A(int i) {
|
||||
}
|
||||
|
||||
A method() {
|
||||
return newA(10);
|
||||
}
|
||||
|
||||
public static A newA(int i) {
|
||||
return new A(i);
|
||||
}
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
B(int j) {
|
||||
super(j+1);
|
||||
}
|
||||
}
|
||||
|
||||
class Usage {
|
||||
A a = A.newA(2);
|
||||
}
|
||||
Reference in New Issue
Block a user