Question:You create an ArrayList object and add 200 instances of your custom class, Product. When you call ArrayList.Sort, you receive an InvalidOperationException. How should you resolve the problem? (Choose two. Each answer forms part of the complete solution.) - VB.NET 

A Implement the IComparable interface. 

B Create a method named CompareTo. 

C Implement the IEnumerable interface. 

D Create a method named GetEnumerator. 

+ Answer
+ Report
Total Preview: 1351

Copyright © 2024. Powered by Intellect Software Ltd