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 * x; }}

class B: IФормула { рublic int F (int x) {return 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 (______________);

}

}

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

C# oop_class

0%
0%
0%
0%
0%
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