Question: Which of the following are the correct ways to declare a delegate for calling the function func() defined in the sample class given below?

Options

A : delegate d(int i, Single j);

B : delegate void d(int, Single);

C : delegate int d(int i, Single j);

D : delegate void (int i, Single j);

Click to view Correct Answer

Previous || Next

Delegates - General Questions more questions

Which of the following is the correct way to call....

Which of the following is the correct way to call....

Which of the following statements are correct about a delegate?

Which of the following statements are correct about delegates?

Which of the following statements are correct about delegates?

Suppose on pushing a button an object is to be....

Which of the following statements is incorrect about a delegate?

Suppose a Generic class called SortObjects is to be made....

With which of the following can the ref keyword be....

Which of the following statements are TRUE about the .NET....

Attributes - General Questions more Online Exam Quiz

Attributes - General Questions

Classes and Objects - General Questions

Collection Classes - General Questions

Constructors - General Questions

Datatypes - General Questions

.NET Framework - General Questions

Enumerations - General Questions

Exception Handling - General Questions

Functions and Subroutines - General Questions