✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
using System;
class Program
{
static int [] a = new int [] {10, 30, 20};
public delegate void F();
public static void R() {Array.Reverse (a); }
public static void S() {Array.Sort (a); }
public static void M() {int buf = a [0]; a [0] = a [a.Length - 1]; a [a.Length - 1] = buf; }
static void Main ()
{
F f = new F (S); f + = M; f- = S; f();
for (int i = 0; i
}
}
C# oop_class