okay, I'm trying to create a new instance of SimpleCanvas through the FlagDrawer object. I need the SimpleCanvas to be scalable. I can only use the two instance variables and one constructor given to me. What I'm trying to do now is take the class instance variable (int) size and get that value into two temporary constructor variables, width and height so I can then get it into the SimpleCanvas sc.width and sc.height
it's not happening man. this error message comes up. It only happens when I put in the sc = new SimpleCanvas etc.
cannot find symbol - constructor for SimpleCanvas(int,int) is the error message I get.
public class FlagDrawer
{
// instance variables - replace the example below with your own
private int size;
private SimpleCanvas sc;
public FlagDrawer(int size)
{
// initialise instance variables
int width;
int height;
this.size = width;
this.size = height;
sc = new SimpleCanvas (width, height);
}
public void sampleMethod()
{
// put your code here
//return x + y;
}
}
please halp