logo

Crowdly

Browser

Add to Chrome

У класі Testвизначено наведений нижче код: delegate string strMod (string str...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

У класі Testвизначено наведений нижче код:

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

More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome