Skip to content

Commit 9007fd3

Browse files
authored
Update this2.java
1 parent 35b661b commit 9007fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: this keyword/this2.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Test {
77

88
// Default constructor
99
Test() {
10-
this(10, 20);
10+
this(10, 20); //constructor chaining
1111
System.out.println("Inside default constructor \n");
1212
}
1313

0 commit comments

Comments
 (0)