コード例 #1
0
ファイル: Program.cs プロジェクト: Sumitkr220/EmployeeWage
        static void Main(string[] args)
        {
            EmpWageBuilderObject empWageBuilderObject = new EmpWageBuilderObject();

            empWageBuilderObject.addCompanyEmpWage("DMart", 20, 15, 100);
            empWageBuilderObject.addCompanyEmpWage("Reliance", 10, 20, 200);
            empWageBuilderObject.computeEmpWage();
            empWageBuilderObject.getTotalWageForAllCompany();
        }
コード例 #2
0
        public static void Main()
        {
            EmpWageBuilderObject DMart = new EmpWageBuilderObject("NOKIA", 20, 2, 10);

            DMart.computeEmpWage();
            EmpWageBuilderObject Relaince = new EmpWageBuilderObject("SAMSUNG", 10, 4, 20);

            Relaince.computeEmpWage();
        }