Ejemplo n.º 1
0
        private static List <Student> student_List = new List <Student>();       // private list "syudent_List" to store objects/instances of student class



        public void add(Student newStudent)                 // add method which takes one argument of type Student
        {                                                   //  and add instance of student class on "student_list" list
            student_List.Add(newStudent);                   //  calls pre-wriiten "Add" method of "List" class
        }