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 ref class Person : public IComparable<String=>{ public : virtual Boolean CompareTo(String= other){
...
}
}B public ref class Person : public IComparable<String=>{ public : virtual Int32 CompareTo(Object= other){
...
}
}C public ref class Person : public IComparable<String=>{ public : virtual Int32 CompareTo(String= other){
...
}
}D public ref class Person : public IComparable<String=>{ public : virtual Boolean CompareTo(Object= other){
...
}
}
+ AnswerC
+ Report