Commit acb2e8c
committed
feat: add ThisWord example demonstrating usage of 'this' keyword in constructors
Implemented ThisWord.java to illustrate how the 'this' keyword differentiates
instance variables from constructor parameters. Includes an example of object
creation and field initialization representing an account holder scenario.
Signed-off-by: https://github.com/Someshdiwan <[email protected]>1 parent e4b93dc commit acb2e8c
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments