多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You work as an application developer at Certkiller .com. You are currently in theprocess of reviewing an application that was created by a fellow developer.The application that you are reviewing includes a declaration for a collection named EmployeeList, which stores Employee objects. The declaration is shown below: public class EmployeeList : Enumerator, IEnumerable { // Class implementation } You require the ability to iterate through the EmployeeList with minimum development effort.What should you do?()

  • A、 Utilize the switch statement
  • B、 Utilize the dowhile statement
  • C、 Utilize the foreach statement
  • D、 Utilize the if statement
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题