Exemple #1
0
        static void Main(string[] args)
        {
            University.Collections.University university = new Collections.University();

            Student  student  = new Student("Test", "1", new DateTime(1, 2, 3, 4, 5, 6), 1, "KPI", 8);
            Enrollee enrollee = new Enrollee("Test", "1", new DateTime(1, 2, 3, 4, 5, 6), 200, 100);
            Lecturer lecturer = new Lecturer("Test", "1", new DateTime(1, 2, 3, 4, 5, 6), "Subject", "KPI");


            university.Add(student);
            university.Add(enrollee);
            university.Add(lecturer);

            university.Show();

            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            University.Collections.University university = new Collections.University();

            Student  student  = new Student("Neznaiko", "1", new DateTime(1, 2, 3, 4, 5, 6), 1, "KPI", 8);
            Enrollee enrollee = new Enrollee("Samiy Umniy", "1", new DateTime(5, 2, 2, 4, 3, 1), 200, 100);
            Lecturer lecturer = new Lecturer("Javist", "1", new DateTime(4, 2, 3, 7, 8, 6), "Java", "KPI");


            university.Add(student);
            university.Add(enrollee);
            university.Add(lecturer);

            university.Show();

            Console.ReadKey();
        }
Exemple #3
0
        public object DeepCopy()
        {
            University university = new University();

            foreach (var person in _persons)
            {
                Person copy = person.DeepCopy() as Person;

                university.Add(copy);
            }


            return(university);
        }