public class StraightLine extends Shape
{
	private int startX, startY, endX, endY;
	
	public StraightLine(int x1, int y1, int x2, int y2)
	{
		super("Line");
		startX = x1;
		startY = y1;
		endX = x2;
		endY = y2;
	}
	
	public double length()
	{
		double size;
		size = Math.pow(Math.pow(endX - startX, 2) + Math.pow(endY - endY,2), 0.5);
		return size;
	}
	
	public String toString()
	{
		String out;
		out = super.toString() + " coordinates: " + startX + ", " + startY + 
			" and " + endX + ", " + endY;
		return out;
	}
}