Exemplo n.º 1
0
        static void Main()
        {
            Employee dejan = new Employee("Dejan", "Monev");

            dejan.SetSalary(11000);
            dejan.PrintInfo();

            Console.ReadLine();
            Console.Clear();


            SalesPerson dime = new SalesPerson("Dime", "Taksi");

            dime.AddSuccessRevenue(2364);
            dime.PrintInfo();
            Console.WriteLine("Salary + success revenue is: {0}", dime.GetSalary());

            Console.ReadLine();
            Console.Clear();


            Manager strasho = new Manager("Strasho", "Pindjur");

            strasho.AddBonus(324.06);
            strasho.PrintInfo();
            Console.WriteLine("Salary + bonus is: {0}", strasho.GetSalary());

            Console.ReadLine();
            Console.Clear();

            Manager zoki = new Manager("Zoki", "Poki");

            zoki.AddBonus(122.06);

            Contractor nikola = new Contractor("Nikola", "Kojo", 6, 23);

            nikola.Responsible = strasho;

            Contractor kiril = new Contractor("Kiril", "Stipsata", 12, 16);

            kiril.Responsible = zoki;


            SalesPerson[] sales       = new SalesPerson[] { dime };
            Manager[]     managers    = new Manager[] { strasho, zoki };
            Contractor[]  contructors = new Contractor[] { nikola, kiril };

            Employee [][] companyEmployees = new Employee [][] { sales, managers, contructors };

            CEO pero = new CEO("Pero", "Rakunot", 3, companyEmployees);

            pero.PrintInfo();
            pero.PrintEmployees();
            pero.AddSharesPrice(57);
            Console.WriteLine("Salary + (Shares * SharesPrice) is: {0}", pero.GetSalary());



            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main()
        {
            Employee e1 = new Manager("Ravi", 1, "CEO", 10000);
            Employee e2 = new GeneralManager("Rushi", 2, "Tech Manager", "Manager", 8000);
            Employee e3 = new CEO("Udit", 5, 5000);

            Console.WriteLine(e3.CalacNetSalary());
            Console.WriteLine(e2.CalacNetSalary());

            Console.WriteLine(e1.CalacNetSalary());

            Console.ReadLine();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            CEO o = new CEO("shubham", 3, 80000);

            Console.WriteLine("EmpNo    :   " + o.EmpNo);
            Console.WriteLine("Name     :   " + o.Name);
            Console.WriteLine("DeptNo   :   " + o.DeptNo);
            Console.WriteLine("Basic    :   " + o.Basic);
            o.Insert();
            o.Update();
            o.Delete();
            Console.WriteLine();

            GeneralManager o1 = new GeneralManager("perks", "GM", "akshay", 4);

            Console.WriteLine("Perks        :   " + o1.Perks);
            Console.WriteLine("Designation  :   " + o1.Designation);
            Console.WriteLine("EmpNo        :   " + o1.EmpNo);
            Console.WriteLine("Name         :   " + o1.Name);
            Console.WriteLine("DeptNo       :   " + o1.DeptNo);
            Console.WriteLine("Basic        :   " + o1.Basic);
            o1.Insert();
            o1.Update();
            o1.Delete();

            Console.WriteLine();

            Manager o2 = new Manager();

            Console.WriteLine("Designation  :   " + o2.Designation);
            Console.WriteLine("EmpNo        :   " + o2.EmpNo);
            Console.WriteLine("Name         :   " + o2.Name);
            Console.WriteLine("DeptNo       :   " + o2.DeptNo);
            Console.WriteLine("Basic        :   " + o2.Basic);
            o2.Insert();
            o2.Update();
            o2.Delete();

            Console.ReadLine();
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Manager Class");
            Manager m1 = new Manager("Amol", 11, 17000000, "CEO");

            Console.WriteLine(m1.Name + "   " + m1.basic);
            Console.WriteLine("Net sal : " + m1.CalcNetSalary());


            Console.WriteLine("========================================= !!");
            GeneralManager g1 = new GeneralManager("Amol", 12, 16000000, "CEO", "GOLD");

            Console.WriteLine(g1.Name + "   " + g1.basic);
            Console.WriteLine("Net sal : " + g1.CalcNetSalary());

            Console.WriteLine("========================================= !!");
            CEO c1 = new CEO("Amol", 13, 20000000);

            Console.WriteLine(c1.Name + "   " + c1.basic);
            Console.WriteLine("Net sal : " + c1.CalcNetSalary());
            Console.ReadLine();
        }
Exemplo n.º 5
0
 static void Main(string[] args)
 {
     Employee emp1 = new Employee(100, "Hey You", "Call Center");
     Manager  mgr1 = new Manager(10, "Mr Smith", "IT", 10000);
     CEO      ceo1 = new CEO(1, "Madam", "Executive", 100000, "Row 1 Slot 1");
 }