Which among the following is a valid syntax defining a delegate

  1. delegate {TheMethod( int Z) }

  2. delegate void TheMethod(int Z) ;

  3. delegate: TheMethod (int Z)

  4. delegate: {TheMethod (int Z)}


Correct Option: B

Find more quizzes: