public override void Move(Position newPosition) { Write("Rectangle "); base.Move(newPosition); }
public virtual void Move(Position newPosition) { Position.X = newPosition.X; Position.Y = newPosition.Y; WriteLine($"moves to {Position}"); }