public TransparentShape2(Shape2 shape, float transparency) { this.shape = shape ?? throw new ArgumentNullException(nameof(shape)); this.transparency = transparency; }
public ColoredSquare2(Shape2 shape, string color) { this.shape = shape ?? throw new ArgumentNullException(nameof(shape)); this.color = color ?? throw new ArgumentNullException(nameof(color)); }