forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCtor1.java
More file actions
21 lines (16 loc) · 402 Bytes
/
Ctor1.java
File metadata and controls
21 lines (16 loc) · 402 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Ctor1 {
public Ctor1() {
System.out.println("Ctor1()");
}
public Ctor1(int arg) {
System.out.println("Ctor1(int)");
}
public Ctor1(String arg) {
System.out.println("Ctor1(String)");
}
public static void main(String[] args) {
Ctor1 t1 = new Ctor1();
Ctor1 t2 = new Ctor1(3);
Ctor1 t3 = new Ctor1("notnull");
}
}