コード例 #1
0
    public SmartSystem()
    {
        name = "";

        classroom = new System.Collections.ArrayList();
        Classroom newClassroom = new Classroom();

        course = new System.Collections.ArrayList();
        Course newCourse = new Course();

        elibrary = new System.Collections.ArrayList();
        Elibrary newElibrary = new Elibrary();

        student = new System.Collections.ArrayList();
        Student newStudent = new Student();

        student.Add(newStudent);

        teacher = new System.Collections.ArrayList();
        Teacher newTeacher = new Teacher();

        teacher.Add(newTeacher);

        //Console.WriteLine("SmartSystem was created (default)");
    }
コード例 #2
0
    public SmartSystem(string n, string na, string sn, int r, string nam, float ma, string name, int q, string sur, string sub, string a, string b, string g, int c, int sa, int pr, string av, string v, string s, string p)
    {
        name = n;

        classroom = new System.Collections.ArrayList();
        Classroom newClassroom = new Classroom(a, b);

        course = new System.Collections.ArrayList();
        Course newCourse = new Course(g, c, sa, pr);

        elibrary = new System.Collections.ArrayList();
        Elibrary newElibrary = new Elibrary(av, v, s, p);

        student = new System.Collections.ArrayList();
        Student newStudent = new Student(n, na, r, nam, ma);

        student.Add(newStudent);

        teacher = new System.Collections.ArrayList();
        Teacher newTeacher = new Teacher(name, q, sur, sub);

        teacher.Add(newTeacher);

        //Console.WriteLine("University was created (initialization)");
    }
コード例 #3
0
 public Elibrary(Elibrary previousElibrary)
 {
     videolecture = previousElibrary.videolecture;
     vebinari     = previousElibrary.vebinari;
     sam_zavd     = previousElibrary.sam_zavd;
     prakt_zavd   = previousElibrary.prakt_zavd;
     Console.WriteLine("Elibrary created (copy)");
 }