Making a Red Circle

Now let's make a coloured circle.

Making a Red Circle

Now let's make a coloured circle.

Making a Red Circle

Now let's make a coloured circle.

Making a Red Circle

Now let's make a coloured circle.

Making a Red Circle

Now let's make a coloured circle.

Making a Red Circle

Finished code.

class Circle {
private int x=50, y=50;
private int size=20;

public void moveTo(int xpos, int ypos){
	x=xpos; y=ypos;
	}

public void draw(java.awt.Graphics g){
	g.drawOval(x, y, size, size);
	}

}

class Circle {
private int x=50, y=50;
private int size=20;

public void moveTo(int xpos, int ypos){
	x=xpos; y=ypos;
	}

public void draw(java.awt.Graphics g){
	g.drawOval(x, y, size, size);
	}

}

class RedCircle {
private int x=50, y=50;
private int size=20;

public void moveTo(int xpos, int ypos){
	x=xpos; y=ypos;
	}

public void draw(java.awt.Graphics g){
	g.drawOval(x, y, size, size);
	}

}

class RedCircle {
private int x=50, y=50;
private int size=20;

public void moveTo(int xpos, int ypos){
	x=xpos; y=ypos;
	}

public void draw(java.awt.Graphics g){
	*g.drawOval(x, y, size, size);
	}

}

class RedCircle {
private int x=50, y=50;
private int size=20;

public void moveTo(int xpos, int ypos){
	x=xpos; y=ypos;
	}

public void draw(java.awt.Graphics g){
	g.setColor(java.awt.Color.red);
	g.drawOval(x, y, size, size);
	}

}

class RedCircle {
private int x=50, y=50;
private int size=20;

public void moveTo(int xpos, int ypos){
	x=xpos; y=ypos;
	}

public void draw(java.awt.Graphics g){
	g.setColor(java.awt.Color.red);
	g.drawOval(x, y, size, size);
	}

}