You work as an application developer at Certkiller...
单选题

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?()

发布日期:2022-07-19

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 }

标签: "暂无标签"

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定