Question: Given the delegate declaration delegate void PerformsSomeTask(int arg1, double arg2); which of the following statements would appear to create a delegate instance of PerformsSomeTask( )

Given the delegate declaration delegate void PerformsSomeTask(int arg1, double arg2);

which of the following statements would appear to create a delegate instance of PerformsSomeTask( ) with no syntax errors?

a. PerformsSomeTask task1 =

new PerformsSomeTask (CalculateThis);

b. PerformsSomeTask task1 =

new PerformsSomeTask (CalculateThis( ));

c. PerformsSomeTask( ) task1 =

new PerformsSomeTask (CalculateThis( ));

d. PerformsSomeTask( ) task1 = new PerformsSomeTask

(CalculateThis(int, double));

e. PerformsSomeTask task1 = new PerformsSomeTask

(CalculateThis (int arg1, double arg2));

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Systems Analysis Design Questions!