GIAC
GSSP-NET · Question #61
GSSP-NET Question #61: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #61. The question stem and answer options stay visible for context.
Question
John works as a Software Developer for Blue Well Inc. He wants to create a class named Class1 and implements the generic IComparable interface. He writes the following code: public class Class1 : System.IComparable<Class1> { } However, John needs to compare one object of Class1 with another object. Which of the following code statement will John include in his application?
Options
- Apublic int CompareTo(object obj){}
- Bpublic object CompareTo(int obj){}
- Cpublic object CompareTo(Class1 obj){}
- Dpublic int CompareTo(Class1 obj){}
Unlock GSSP-NET to see the answer
You've previewed enough free GSSP-NET questions. Unlock GSSP-NET for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.