Пример #1
0
 public TCircle(TCircle c)
 {
     this.R = c.R;
     this.S = Square();
     this.L = Length();
     Print();
 }
Пример #2
0
 static void Main(string[] args)
 {
     try
     {
         TCircle circle = new TCircle();
         Console.WriteLine();
         circle += 7;
         Console.WriteLine();
         circle *= 2;
         Console.WriteLine();
         circle -= 7;
         Console.WriteLine();
         TCone cone = new TCone(3);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
     }
 }