private void PrototypeStart(object sender, RoutedEventArgs e) { IFigure figure = new Prototype.Rectangle(30, 40); IFigure clonedFigure = figure.Clone(); MessageBox.Show(figure.GetInfo()); MessageBox.Show(clonedFigure.GetInfo()); figure = new Circle(30); clonedFigure = figure.Clone(); MessageBox.Show(figure.GetInfo()); MessageBox.Show(clonedFigure.GetInfo()); figure = new Circle(15); MessageBox.Show(figure.GetInfo()); Circle deepClonedFigure = figure.DeepCopy() as Circle; MessageBox.Show(deepClonedFigure.GetInfo()); }