Exemplo n.º 1
0
 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();
 }