Question:You are creating a class to compare a specially-formatted string. The default collation comparisons do not apply. You need to implement the IComparable<string> interface. Which code segment should you use? 

A public class Person : IComparable<string>{
public int CompareTo(string other){
 ...
}

B public class Person : IComparable<string>{ public bool CompareTo(string other){
...
"A Composite Solution With Just One Click" - Certification Guaranteed 293 Microsoft 70-536 Exam
}

C public class Person : IComparable<string>{
public bool CompareTo(object other){
 ...
}

D public class Person : IComparable<string>{
public int CompareTo(object other){
 ...
}

+ Answer
+ Report
Total Preview: 1196

Copyright © 2024. Powered by Intellect Software Ltd