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? - (VB.Net) 

A Public Class Person
Implements IComparable(Of String)
Public Function CompareTo(other As String) As Integer
End Function
End Class 

B Public Class Person
Implements IComparable(Of String)
Public Function CompareTo(other As Object) As Integer
End Function
End Class 

C Public Class Person
Implements IComparable(Of String)
Public Function CompareTo(other As String) As Boolean
End Function
End Class 

D Public Class Person
Implements IComparable(Of String)
Public Function CompareTo(other As Object) As Boolean
End Function
End Class 

+ Answer
+ Report
Total Preview: 964

Copyright © 2024. Powered by Intellect Software Ltd