View Single Post
  #2 (permalink)  
Old 04-14-2008, 11:01 PM
CaptainMorgan's Avatar
CaptainMorgan CaptainMorgan is offline
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
The constructor is there, but look - the one that's there is not a default constructor(no parameters), but one that has an x and y of int for a parameter. The error tells you it can't find the default constructor.. for whatever reason.... I can't see why it's looking for it without more code, maybe another method is looking for it but it never will find it, hence the error. Look into a term or concept called overloaded for more help. Are the two constructors below equal?

public Square() {}
public Square(int x, int y) {...}

Answer, no.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Reply With Quote