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