private void BtnTalk_Click(object sender, RoutedEventArgs e)
        {
            StudentCollege studentCollege = new StudentCollege();

            studentCollege.StudentName = "Minh";
            studentCollege.Talk();
            StudentUniversity studentUniversity = new StudentUniversity();

            studentUniversity.StudentName = "Dung";
            studentUniversity.Talk();
        }
Example #2
0
        private void TxbNhap_Click(object sender, RoutedEventArgs e)
        {
            StudentCollege college = new StudentCollege();

            college.StudentName = "Minh";
            college.Talk();
            StudentUniversity university = new StudentUniversity();

            university.StudentName = "Dung";
            university.Talk();
        }
Example #3
0
        private void BtnTalk_Click(object sender, RoutedEventArgs e)
        {
            StudentCollege college = new StudentCollege();

            college.StudentName = "Minh";
            college.Talk();
            StudentUniversity university = new StudentUniversity();

            university.StudentName = "Dung";
            university.Talk();
            Student[] studentList = new Student[3];

            studentList[0] = new Student("Minh");

            studentList[1] = new Student("Hoa");

            studentList[2] = new Student("Dung");
            for (int i = 0; i < 3; i++)
            {
                lst.Items.Add(studentList[i].StudentName);
            }
        }