logo

Crowdly

Browser

Add to Chrome

Вихідний модуль містить код: interface IФормула {int F (int x); } class A:...

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

Вихідний модуль містить код:

interface IФормула {int F (int x); }

class A: IФормула { рublic int F (int x) {return x * x; }}

class B: IФормула { рublic int F (int x) {return x * x * x; }}

class Program

{

static int Out (IФормула f, int x) {return fF (x); }

static void Main ()

{

A a = new A(); B b = new B();

System.Console.WriteLine (_________);

}

}

Серед перерахованих нижче кодів вкажіть код, підстановка якого замість знаків підкреслення дозволяє отримати коректну програму для обчислення 3 * 3 + 2 * 2 * 2:

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