static void Main(string[] args) { Manager Bob = new Manager("Bob", "Bobsky", 2542); Manager John = new Manager("John", "Jonissimo", 5000); Contractor Mona = new Contractor("Mona", "Monalisa", 80, 120, Bob); Contractor Igor = new Contractor("Igor", "Igorski", 85, 100, John); SalesPerson Lea = new SalesPerson("Lea", "Leova", 87); Employee[] company = { Bob, John, Mona, Igor, Lea }; Ceo Ron = new Ceo("Ron", "Ronsky", company, 1500); Ron.AddSharesPrice(103); Console.WriteLine("Info " + Ron.GetInfo()); Console.WriteLine("Salary " + Ron.GetSalary()); Ron.GetEmployees(); }
static void Main(string[] args) { Manager john = new Manager("John", "Doe"); john.AddBonus(1000); john.GetSalary(); Manager boki = new Manager("Boki", "Bobov"); boki.AddBonus(1200); boki.GetSalary(); Contractor koki = new Contractor("Koki", "Kokov", john, 40); koki.GetSalary(); Contractor viki = new Contractor("Viki", "Vikova", boki, 50); viki.GetSalary(); SalesPerson martin = new SalesPerson("Martin", "Martinov"); martin.ExtendSuccessRevenue(3000); martin.GetSalary(); Employee[] companyEmployees = { john, boki, koki, viki, martin }; Ceo trump = new Ceo("Donald", "Trump", 7000, companyEmployees); trump.AddSharesPrice(100); trump.GetSalary(); trump.PrintInfo(); trump.PrintEmployees(); Console.ReadLine(); }