Suppose a Generic class called as SortObjects is to be made capable of sorting objects of any type(integer, single, byte etc). Then, which of the following programming constructs is able to implement the comparison function?
(a) interface
(b) encapsulation
(c) delegate
(d) attribute
This question was posed to me during a job interview.
My question is from Fundamental of Delegates topic in chapter Delegates, Generics and LINQ of C#