Multiple choice

Which of the following is the incorrect declaration of the delegate in C# language?

  1. delegate int ThisDelegate (int x)

  2. public delegate int ThisDelegate (String x)

  3. public delegate char ThisDelegate (String x)

  4. delegate char ThisDelegate (String)

  5. none of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This declaration is incorrect as there is no parameter name defined for the String variable.