题目内容

You work as an application developer at Certkiller .com. You have been given the responsibility of creating a class named CalcSalary that will determine the salaries of Certkiller .com’s staff. The CalcSalary class includes methods to increment and decrement staff salaries. The following code is included in the CalcSalary class: public class CalcSalary { // for promotions public static bool IncrementSalary (Employee Emp, double Amount) { if (Emp.Status == QuarterlyReview.AboveGoals) Emp.Salary += Amount; return true; } else return false; } //for demotions public static bool DecrementSalary (Employee Emp, double Amount) { if (Emp.Status == QuarterlyReview.AboveGoals) Emp.Salary -= Amount; return true; } else return false; } } You would like to invoke the IncrementSalary and DecrementSalary methods dynamically at runtime from the sales manager application, and decide to create a delegate named SalaryDelegate to invoke them. You need to ensure that you use the appropriate code to declare the SalaryDelegate delegate.What is the correct line of code?()

A. public delegate bool Salary (Employee Emp, double Amount);
B. public bool Salary (Employee Emp, double Amount);
C. public event bool Salary (Employee Emp, double Amount);
D. public delegate void Salary (Employee Emp, double Amount);

查看答案
更多问题

国际企业利用利用内部转移价格避税时,其主要做法是:对由低税国子公司向高税国子公司的出口业务采取低价,而对由高税国向低税国的出口业务则采取高价。

A. 正确
B. 错误

办理电话银行业务申请时,须向客户进行必要的电话银行(),充分提示办理电话银行业务可能面临的风险、农信社(行)已经采取的风险控制措施和客户应采取的风险控制方法,以及相关风险的责任承担。

A. 安全提示
B. 服务项目
C. 收费标准
D. 防范措施

简述肺栓塞发生的原因是什么?

什么是酒花利用率?如何提高?

答案查题题库