✅ 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