Question: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? -(VB.NET)
A Public Class ShoppingList
Implements ICollection
' Class implementation
End Class
B Public Class ShoppingList
Implements IEnumerator
Implements IEnumerable
' Class implementation
End Class
C Public Class ShoppingList
Inherits Ilist
' Class implementation
End Class
D Public Class ShoppingList
Inherits [Enum]
' Class implementation
End Class