예제 #1
0
        static void Main(string[] args)
        {
            Person     Egor  = new Person("Yehor", "Ovseukov", new DateTime(2002, 09, 26));
            Abiturient Gosha = new Abiturient("Gosha", "Ivanov", 200, 7, "lyceum #2");
            Student    Roma  = new Student("Roma", "Markeev", new DateTime(2002, 09, 21),
                                           179, 9, "School #10", 1, "CS_20_1", "FICT", "ZTU");
            Teacher     Misha = new Teacher("Misha", "Simonec", new DateTime(1980, 06, 6), "Dean", "CE", "ZTU");
            LibraryUser Danil = new LibraryUser("Danil", "Malinovskiy",
                                                new DateTime(2003, 05, 12), 1337, new DateTime(2020, 11, 29), 25);

            Console.WriteLine($"Person - {Egor.ShowInfo()}\n");
            Console.WriteLine("Abiturient - " + Gosha.ShowInfo() + "\n");
            Console.WriteLine("Student - " + Roma.ShowInfo() + "\n");
            Console.WriteLine("Teacher - " + Misha.ShowInfo() + "\n");
            Console.WriteLine("Library user - " + Danil.ShowInfo() + "\n");

            Console.ReadKey();
        }
예제 #2
0
        static void Main(string[] args)
        {
            Human human = new Human();

            human.ShowInfo();
            Abiturient abiturient = new Abiturient();

            abiturient.ShowInfo();
            Student student = new Student();

            student.ShowInfo();
            Teacher teacher = new Teacher();

            teacher.ShowInfo();
            Library_User library_User = new Library_User();

            library_User.ShowInfo();
            Console.ReadKey();
        }
예제 #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Suck some dick");
            Human      x = new Human();
            Abiturient y = new Abiturient();
            Student    u = new Student();
            Teacher    r = new Teacher();
            Bibl_user  k = new Bibl_user();

            x.SET_ALL();
            x.ShowInfo();
            y.SET_ALL();
            y.ShowInfo();
            u.SET_ALL();
            u.ShowInfo();
            r.SET_ALL();
            r.ShowInfo();
            k.SET_ALL();
            k.ShowInfo();
        }