public Shape(int width, int height, int x, int y) { Size = new Size { Width = width, Height = height }; Position = new Position { X = x, Y = y }; }
public virtual void Move(Position newPosition) { Position.X = newPosition.X; Position.Y = newPosition.Y; WriteLine($"moves to {Position}"); }
public override void Move(Position newPosition) { Write("Rectangle "); base.Move(newPosition); }