Esempio n. 1
0
        static void Main(string[] args)
        {
            Human hum1 = new Human("Nya", "Tyan", "10.3.2002");

            Console.WriteLine($"{hum1.Name} {hum1.LastName}, {hum1.DateBirth}");
            Abiturient abi1 = new Abiturient("Nyan", "Tyan", "25.3.2000", 180, 9.5, "School 21");

            Console.WriteLine($"{abi1.Name} {abi1.LastName}, {abi1.DateBirth}, {abi1.BalSertificate}, {abi1.BalDocument}, {abi1.NameSchool}");
            Student student1 = new Student("Nyan", "Tyan", "25.3.2000", "first", "IPZ-19-2", "FIKT", "KPI");

            Console.WriteLine($"{student1.Name} {student1.LastName}, {student1.DateBirth}, {student1.Course}, {student1.Group}, {student1.Faculty}, {student1.NameVNZ}");
            Proffesor prof1 = new Proffesor("Nyan", "Tyan", "25.3.1995", "teacher", "Computer Science", "ZDU");

            Console.WriteLine($"{prof1.Name} {prof1.LastName}, {prof1.DateBirth}, {prof1.Position}, {prof1.Cafedra}, {prof1.NameVNZ}");
            Library_user user1 = new Library_user("Charlie", "Tyan", "25.3.2003", 1500674329, "13.8.2015", 1000);

            Console.WriteLine($"{user1.Name} {user1.LastName}, {user1.DateBirth}, {user1.Number}, {user1.Date}, {user1.Vnesok}");
        }
Esempio n. 2
0
 public Abiturient(Abiturient previousAbiturient)
 {
     ZNO         = previousAbiturient.ZNO;
     Certificate = previousAbiturient.Certificate;
     School      = previousAbiturient.School;
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Abiturient EmptyAbit = new Abiturient();

            Console.WriteLine(EmptyAbit.GetInfo());

            Abiturient abit = new Abiturient("Виталий", "Кличко", new DateTime(2000, 10, 10), 153, 11, "Школа №5");

            Console.WriteLine(abit.GetInfo());

            Abiturient CopyAbit = new Abiturient(abit);

            Console.WriteLine(CopyAbit.GetInfo());

            Abiturient NotFullAbit = new Abiturient("Виталий", "Кличко", 153, "Школа №5");

            Console.WriteLine(NotFullAbit.GetInfo());
            Console.WriteLine("\n");


            Student EmptyStud = new Student();

            Console.WriteLine(EmptyStud.GetInfo());
            Student Stud = new Student("Валентин", "Дорн", new DateTime(1995, 12, 27), 1, 1, "ФІКТ", "ЖДТУ");

            Console.WriteLine(Stud.GetInfo());
            Student CopyStud = new Student(Stud);

            Console.WriteLine(CopyStud.GetInfo());
            Student NotFullStud = new Student("Валентин", "Дорн", 1, 1, "ЖДТУ");

            Console.WriteLine(NotFullStud.GetInfo());
            Console.WriteLine("\n");


            Teacher EmptyTeach = new Teacher();

            Console.WriteLine(EmptyTeach.GetInfo());
            Teacher Teach = new Teacher("АННА", "Иванова", new DateTime(1985, 2, 7), "Декан", "ФІКТ", "ЖДТУ");

            Console.WriteLine(Teach.GetInfo());
            Teacher CopyTeach = new Teacher(Teach);

            Console.WriteLine(CopyTeach.GetInfo());
            Teacher NotFullTeach = new Teacher("Анна", "Иванова", "Декан", "ЖДТУ");

            Console.WriteLine(NotFullTeach.GetInfo());
            Console.WriteLine("\n");


            LibraryUser EmptyLib = new LibraryUser();

            Console.WriteLine(EmptyLib.GetInfo());
            LibraryUser Lib = new LibraryUser("Владислав", "Борисов", new DateTime(2003, 7, 14), 00125678, new DateTime(2019, 10, 24), 75);

            Console.WriteLine(Lib.GetInfo());
            LibraryUser CopyLib = new LibraryUser(Lib);

            Console.WriteLine(CopyLib.GetInfo());
            LibraryUser NotFullLib = new LibraryUser("Владислав", "Борисов", 09976443, new DateTime(2019, 3, 27));

            Console.WriteLine(NotFullLib.GetInfo());
            Console.WriteLine("\n");
        }