✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
interface IFigure {int Perimeter(); int Square(); }
class Kvadrat: IFigure
{ int length;
public Kvadrat (int length) {this.length= length;}
public int Perimeter() {return 4 * length; }
int IFigure.Square() {return length * length; }
}
class Test
{ рublic static void Main ()
{ IFigure fig;
fig = new Kvadrat (10);
System.Console.WriteLine ( "Периметр = {0} Площа = {1}",
fig. Perimeter(), fig.Square());
}}
Вкажіть результат виведення на консоль після спроби запустити програму на компіляцію і виконання:
C# oop_class