Exemple #1
0
        public static void TestFoundProps()
        {
            Found found = new Found("Иван", 31);

            found.Work();
            Console.WriteLine();
        }
Exemple #2
0
        static void Main()
        {
            Employee e = new Employee("Joe", 80, 30000);

            e.GiveBonus(200);
            var e2 = new Employee("Beth", 81, 50000);

            e2.GiveBonus(1000);
            e2.DisplayStats();
            Console.WriteLine();

            Person.TestPersonProps();
            Person.TestPersonChildren();

            Found.TestFoundProps();
            Derived.TestDerivedProps();

            ClainP.TestClainIProps();
            ClainTwo.TestTwoInterfaces();

            Console.ReadKey();
        }