Constructor call a constructor of the same Java class

can't I have a constructor call a constructor of the same class?
sure
try
usint this()
sure is possible
g
ie "new MyClass()" calls "new MyClass(0,0)"
no
new MyClass() calls this(0,0)
you're just doing it wrong
reread your java book's chapter on constructors
funny, i'm cisco certified, and i know shit of java
(cisco certified for java, of course)

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Leave a Comment

You must be logged in to post a comment.


Blog Tags:

Similar posts: