예제 #1
0
파일: Program.cs 프로젝트: sempf/CSharp2012
 public static void Main()
 {
     Student student = new Student();
     student.SetName("Stephen", "Davis"); // Call instance method.
     Console.WriteLine("Student's name is "
                      + student.ToNameString());
     // Wait for user to acknowledge.
     Console.WriteLine("Press Enter to terminate...");
     Console.Read();
 }
예제 #2
0
        static void Main(string[] args)
        {
            Student student = new Student();

            student.SetName("Stephen", "Davis"); // Call instance method.
            Console.WriteLine("Student's name is "
                              + student.ToNameString());

            // Wait for user to acknowledge.
            Console.WriteLine("Press Enter to terminate...");
            Console.Read();
        }
예제 #3
0
        public static void Main()
        {
            Student student = new Student();

            student.SetName("Stephen", "Davis");

            Console.WriteLine("Student's name is "
                              + student.ToNameString());

            // wait for user to acknowledge
            Console.WriteLine("Press Enter to terminate...");
            Console.Read();
        }