예제 #1
0
 static void Main(string[] args)
 {
     do
     {
         Console.WriteLine("Введите строку");
         string   s  = Console.ReadLine();
         string[] ss = Abb.ValidatedSplit(s, ';');
         if (ss == null)
         {
             Console.WriteLine("Неверный ввод");
         }
         else
         {
             foreach (string a in ss)
             {
                 Console.WriteLine(Abb.Abbrevation(a));
             }
         }
         Console.WriteLine("Нажмите Esxc для завершения...");
     } while (Console.ReadKey().Key != ConsoleKey.Escape);
 }
예제 #2
0
 public Baa(Abb d) : base(d)   //如果父类构造函数有形参,子类必须继承
 {                             //父类构造函数,且形参必须一致,如果父类
                               //构造函数无参数,则不需
 }
예제 #3
0
 public ReadonlyConst(Abb a)       //构造函数简写(ctor)
 {
     _a = a;
 }