GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 5 Topic 1 Discussion

GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 5 Topic 1 Discussion

GSSP-NET-CSHARP Exam Topic 1 Question 5 Discussion:
Question #: 5
Topic #: 1

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

{

}

However, John needs to compare one object of Class1 with another object. Which of the following code statement will John include in his application?


A.

public int CompareTo(object obj){}


B.

public object CompareTo(int obj){}


C.

public int CompareTo(Class1 obj){}


D.

public object CompareTo(Class1 obj){}


Get Premium GSSP-NET-CSHARP Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.