示例#1
0
        static void Main(string[] args)
        {
            JuniorSoftwareEngineer juniorSoftwareEngineer
                = new JuniorSoftwareEngineer();

            ProjectManger projectManager = new ProjectManger();

            int totalJseSalary = juniorSoftwareEngineer.CalculateSalary();
            int totalPmSalary  = projectManager.CalculateSalary();

            int totalLeaves   = juniorSoftwareEngineer.TotalLeaves();
            int totalPmLeaves = projectManager.TotalLeaves();

            Console.WriteLine($"Jse Salary : {totalJseSalary}");
            Console.WriteLine($"Pm Salary : {totalPmSalary}");;

            Console.WriteLine($"Jse Leaves : {totalLeaves}");
            Console.WriteLine($"Pm Leaves : {totalPmLeaves}");

            bool isJseEligigle = LoanEligibilityCalculator
                                 .IsEmployeeLoanEligible(juniorSoftwareEngineer);

            bool isPmEligigle = LoanEligibilityCalculator
                                .IsEmployeeLoanEligible(projectManager);
        }
示例#2
0
        static void Main(string[] args)
        {
            JuniorSoftwareEngineer JuniorSoftwareEngg = new JuniorSoftwareEngineer();

            bool isEligible = LoanEligibiltycalculator.IsEmployeeLoanEligible(JuniorSoftwareEngg);
        }