package shapes;
public class Main
{
private Location l = new Location();
public Square(double x, double y, double side)
{
l.SetX(x);
l.SetY(y);
l.SetSide(side);
}
public final void Move(double x, double y)
{
l.SetX(x);
l.SetY(y);
}
public final void Scale(int factor)
{
l.SetSide(l.GetSide() * factor);
}
public final String toString()
{
return "Corner (" + l.GetX() / 2 + "), side " + l.GetSide();
}
}