Q:

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#

C#

All Replies

Viewing 1 replies (of 1 total)

Viewing 1 replies (of 1 total)

  • You must be logged in to reply to this topic.