Hi guys ,
i am a to programming and have to do little code as an excercise, but got little confuse about constructors and objects while compiling my programm.
forexample
i created an object of a class called AsciiImage;
in the Main class
public class AsciiReader{
public static void main(String [] args){
int height=0;
int width=0;
AsciiImage p = new AsciiImage(width, height);
}
and the Aciiimage class
public class AsciiImage{
int height;
int width;
contstructor
public AsciiImage(int height, int width){
this.width= width;
this height=height;
the only problem by compiling is this:
cannot find symbol class AsciiImage
can some body help me
thanks