Blog

Seleccione el resultado del siguiente código:

abstract class Fruit {
protected String color =”PINK”;
public abstract String Color();
}

class Apple : Fruit {
String color = “GREEN”;
public override string Color() { return base.color;}
}

class Program {
static void Main(string[] args) {
Fruit f = new Apple();
try { Console.WriteLine(f.Color()); }
catch (Exception e){ throw e.InnerException; }
}
}