单项选择题

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);

相关考题

单项选择题 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.You would like to invoke the IncrementSalary and  DecrementSalary methods dynamically at runtime from the sales manager application when needed. After viewing the information displayed in the exhibit, you decide to use the Salary delegate to invoke these methods.  using System;  public delegate boolSalary (Employee Emp, double Amount); public class CalcSalary {  // for promotions  public static bool IncrementSalary (Employee Emp, double Amount) {  // implementation details }  // for demotions  public static bool DecrementSalary (Employee Emp, double Amount) {  // implementation details }  What code should you use?()

单项选择题 YouworkasanapplicationdeveloperatCertkiller.com.YouaredevelopingacollectionclassnamedClientCollection,whichistobeusedforstoringthenamesof Certkiller.com’sclientsthataresituatedinvariousgeographicalareas.TheseclientnamesarerepresentedbytheClientclass.YouareplanningtocreateamethodnamedSortClientsintheClientCollectionclasstoarrangeClientobjectsinascendingorder.YouneedtoensurethattheappropriateinterfaceisimplementedbytheClientclasstoallowsorting.Whatinterfaceshouldbeused?()

单项选择题 You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that handles passes for Certkiller .com’s parking lot. The application has to store and retrieve vehicle information in a contiguous list that  allows for advanced navigation techniques.You have already written and executed the following code:  Vehicle v1, v2, v3, v4, v5;  v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);  v2 = new Vehicle ("1H2569122493456960", "Honda Civic", 1999);  v3 = new Vehicle ("1F2569106891234589", "Mitsubishi Lancer", 2001);  v4 = new Vehicle ("1F7969122491234589", "Mazda MX7", 1998);  v5 = new Vehicle ("1T2569122493456123", "Toyota Supra", 2000);  LinkedList  vList = new LinkedList < Vehicle > ();  LinkedListNode < Vehicle > vNode; vNode = vList.AddFirst (v1);  vNode = vList.AddLast (v2);  vNode = = vList.AddAfter (vNode, v3);  vNode = = vList.AddAfter (vNode, v4);  vList.AddLast (v5);  foreach (Vehicle v in vList) {  Console.WriteLine ("{0} {1} ({2})",  v.MakeModel, v.Year, v.Vin); }  What output will be produced in the console?()