You work as an application developer at Certkiller .com. You are developing a collection class named ClientCollection, which is to be used for storing the names of Certkiller .com’s clients that are situated in various geographical areas. These client names are represented by the Client class. You are planning to create a method named SortClients in the ClientCollection class to arrange Client objects in ascending order. You need to ensure that the appropriate interface is implemented by the Client class to allow sorting.What interface should be used?()
- A、 IDictionary
- B、 IComparable
- C、 IComparer
- D、 IEqualityComparer
正确答案:B
答案解析:有
微信扫一扫手机做题