C# Programming - Properties - Discussion

Discussion :: Properties - General Questions (Q.No.5)


Which of the following statements are correct?

  1. The signature of an indexer consists of the number and types of its formal parameters.
  2. Indexers are similar to properties except that their accessors take parameters.
  3. Accessors of interface indexers use modifiers.
  4. The type of an indexer and the type of its parameters must be at least as accessible as the indexer itself.
  5. An interface accessor contains a body.

[A]. 1, 3, 5
[B]. 1, 2, 4
[C]. 3, 5
[D]. 2, 4

Answer: Option B


No answer description available for this question.

Aaron said: (Feb 23, 2016)  
What does 4 means anyways?

And what's wrong with 3 or 5? Not always but they are all correct.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.