We can call other constructor from inside a constructor using this().But make sure that this call is first line of the constructor.
http://leepoint.net/notes-java/oop/constructors/constructor.html
http://leepoint.net/notes-java/oop/constructors/constructor-super.html
http://leepoint.net/notes-java/oop/constructors/constructor.html
http://leepoint.net/notes-java/oop/constructors/constructor-super.html
No comments:
Post a Comment