Пример #1
0
      static void Main(string[] args)
      {
         string nameOfRelative;
         Console.WriteLine("Will anyone in your family survive the zombie apocalypse?");
         Console.WriteLine("Enter the name of the one MOST likely to survive.");
         nameOfRelative = Console.ReadLine();

         Console.WriteLine();

        string relationtoRelative;
        Console.WriteLine("Enter this person's relationship to this you.");
        relationtoRelative = Console.ReadLine();

         Console.WriteLine();

         Zombie survivor = new Zombie(nameOfRelative,relationtoRelative);//local variables as arguments
         survivor.DisplayInfo();

         Console.ReadKey();
      }//end Main method