Exemple #1
0
        static void Main(string[] args)
        {
            Employee founder    = new Employee("Yury Uskov", "CEO");
            Employee programmer = new Employee("Alexey Malov", "CTO");
            Employee designer   = new Employee("Rinat Shayhutdinov", "Main designer");

            List <Employee> participants = new List <Employee>();

            participants.Add(programmer);
            participants.Add(designer);

            Company ispring = new Company(founder, "E-learning", 1, participants, 100);

            ispring.Advertise(100);
            designer.GetSalary();

            Client honda   = new Client();
            Client kupivip = new Client();

            ispring.AddClient(honda);
            ispring.AddClient(kupivip);

            honda.PayMoney(10);
            honda.GiveFeedback();
            kupivip.GiveFeedback();

            programmer.GetSalary();
        }
        static void Main(string[] args)
        {
            Human   boss    = new Human("Vytautas");
            Company company = new Company(boss, "MyCompany");

            company.OfficePet = new Dog("Doggo");
            company.HireWorker(new Worker("Valytojas Jonas", 460));
            company.HireWorker(new Worker("Programuotojas Zilvinas", 2500));
            company.AddClient(new Client("Kestas"));
            company.AddClient(new Client("Ona"));
            company.PrintInfo();
            Console.ReadKey();
        }