Blog

Seleccione el resultado del siguiente código:

using System;

class sample {
int i;
public sample(int num){
num = 12;
int j = 12;
int val = num * j;
Console.WriteLine(val);
}
}

class sample1 : sample {
public sample1(int a) :base(a) {
a = 13;
int b = 13;
Console.WriteLine(a + b);
}
}

class sample2 : sample1{
public sample2(int k) :base(k){
k = 24;
int o = 6 ;
Console.WriteLine(k /o);
}
}

class Program {
public static void Main(string[] args) {
sample2 t = new sample2(10);
Console.ReadLine();
}
}