Choose the correct way to call subroutine fun() of the sample class?
A delegate void del(int i); x s = new x(); del d = new del(ref s.x); d(8, 2.2f);
B delegate void del(int p, double k); del d; x s = new x(); d = new del(ref s.x); d(8, 2.2f);
C x s = new x(); delegate void d = new del(ref x); d(8, 2.2f);
D all of the mentioned
Answer:D
Choose the correct way to call subroutine fun() of the sample class?
A delegate void del(int i); x s = new x(); del d = new del(ref s.x); d(8, 2.2f); B delegate void del(int p, double k); del d; x s = new x(); d = new del(ref s.x); d(8, 2.2f); C x s = new x(); delegate void d = new del(ref x); d(8, 2.2f); D all of the mentioned