Geek Explains: Java, J2EE, Oracle, Puzzles, and Problem Solving!
Wednesday, May 14, 2008
How do you call a constructor from another?
By using ‘
this()
’ syntax. Just specify the corresponding parameters to ‘
this(…)
’ to call the particular constructor.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment