Exemplo n.º 1
0
 public override void Merge(Interfaces.IShape shape)
 {
     if (!(shape is Rectangle))
     {
         throw new ShapeException("Rectangle cannot be merged with other shapes", shape);
     }
 }
Exemplo n.º 2
0
 public Shape(Interfaces.IShape figure)
 {
     shape = figure;
 }