✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
delegate string strMod (string str);
public static string ReplaceSpaces (string a) {return a.Replace ( '', '-'); }
public string ReplaceHyphens (string a) {return a.Replace ( '-', '*'); }
public static void Main ()
{ string str = System.Console.ReadLine();
strMod strOp = new strMod (Test.ReplaceSpaces);
str = strOp (str);
strOp = new strMod (new Test(). ReplaceHyphens);
str = strOp (str);
System.Console.WriteLine (strOp (str));
}
Користувач збирається після запуску програми ввести фразу ОЧЕНЬ ПРОСТОЙ ТЕСТ. Вкажіть результат виведення на консоль після спроби запустити програму на компіляцію і виконання:
C# oop_class