Question: Which of the following is the correct way to call subroutine MyFun() of the Sample class given below?
Options
A : delegate void del( int i); Sample s = new Sample(); del d = new del( ref s.MyFun); d( 10 , 1.1 f);
B : delegate void del( int i, Single j); del d; Sample s = new Sample(); d = new del( ref s.MyFun); d( 10 , 1.1 f);
C : Sample s = new Sample(); delegate void d = new del( ref MyFun); d( 10 , 1.1 f);
D : delegate void del( int i, Single]); Sample s = new Sample(); del = new delegate ( ref MyFun); del( 10 , 1.1 f);
Delegates - General Questions more questions
Which of the following is the correct default value of....
In which of the following areas are delegates commonly used?
Which of the following is the necessary condition for implementing....
Which of the following statements are correct about the delegate....
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?
Which of the following are the correct ways to declare....
Suppose on pushing a button an object is to be....
Attributes - General Questions more Online Exam Quiz
Attributes - General Questions
Classes and Objects - General Questions
Collection Classes - General Questions
Constructors - General Questions
.NET Framework - General Questions
Enumerations - General Questions