题目内容

You work as an application developer at Certkiller .com. You have recently created a custom collection class named ShoppingList for a local supermarket. This custom class will include ShoppinItem objects that have the public properties listed below. * Name * AisleNumber * OnDiscount You are required to enable users of your class to iterate through the ShoppingList collection, and to list each product name and aisle number using the foreach statement.You need to achieve this by declaring the appropriate code.What code should you use?()

A. public class ShoppingList : ICollection {// Class implementation }
B. public class ShoppingList : IEnumerator, IEnumerable {// Class implementation }
C. public class ShoppingList : Ilist {// Class implementation }
D. public class ShoppingList : Enum {// Class implementation }

查看答案
更多问题

按使用焊接电流的大小,等离子弧可分成()、()和联合弧三大类。

“北京猿人究竟多少人一群呢?”这句话中共有()个语素()个词。

环境监测的方法有哪些?

环己烯加氢变为环己烷是哪一种反应?()

A. 吸热反应
B. 放热反应
C. 热效应很小
D. 不可能发生

答案查题题库