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