mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
public class Test {
|
||||
String str;
|
||||
public Test(int i){}
|
||||
public Test(){
|
||||
this(2);
|
||||
}
|
||||
public Test(String s){
|
||||
this(3);
|
||||
str = s;
|
||||
}
|
||||
void foo(){}
|
||||
public static void main(String[] args){
|
||||
new Test(1).foo();
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
public class Test {
|
||||
String str;
|
||||
public Test(int i){}
|
||||
public Test(){
|
||||
this(2);
|
||||
}
|
||||
public Test(String s){
|
||||
this(3);
|
||||
str = s;
|
||||
}
|
||||
void foo(){}
|
||||
public static void main(String[] args){
|
||||
new Test(1).foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user