示例#1
0
        public static void Main(string[] args)
        {
            Salutation app = new Salutation();

            System.Console.WriteLine(app.Greeting());
            System.Console.WriteLine(app.Greeting("Bob"));
        }
示例#2
0
 public static void Main(string[] args)
 {
     System.Console.WriteLine(Salutation.Greeting());
     System.Console.WriteLine(Salutation.Greeting("Bob"));
     System.Console.WriteLine(); // print a blank line
     System.Console.WriteLine(Salutation.Farewell());
 }