Пример #1
0
        static void Main(string[] args)
        {
            EmpWageBuilderArray empWageBuilder = new EmpWageBuilderArray();

            empWageBuilder.addCompanyEmpWage("DMart", 20, 2, 10);
            empWageBuilder.addCompanyEmpWage("Reliance", 10, 4, 20);
            empWageBuilder.computeEmpWage();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("welcome to employee Program");
            EmpWageBuilderArray empWageBuilder = new EmpWageBuilderArray();   //creat object of EmpWageBuilderArray class

            empWageBuilder.AddCompanyEmpWage("DMart", 20, 2, 10);             //call AddCompany method
            empWageBuilder.AddCompanyEmpWage("Reliance", 10, 4, 20);
            empWageBuilder.computeEmpWage();
            Console.Read();
        }