logo

Crowdly

Browser

Add to Chrome

Вихідний модуль містить код: class Room { private int nom1; public i...

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

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

class Room

{

private int nom1;

public int nom2;

public Room (int a, int b) {nom1 = a; nom2 = b; }

public int Nom

{

get {return nom1 * 100 + nom2; }

set {if (value <5555) {nom1 = value / 100; nom2 = value% 100; }}

}

}

class Program

{

static void Main ()

{

Room r = new Room (12,45);

r.Nom = 4431;

System.Console.Write ( "{0}", r.Nom);

}

}

Вкажіть результат виведення на консоль після виконання методу Main():

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