C Sharp (C#) - Inheritance
What will be the output of the following code?
class Base {
protected int value = 10;
}
class Derived : Base {
public int GetValue() {
return value;
}
}
class Program {
static void Main() {
Derived d = new Derived();
System.Console.WriteLine(d.GetValue());
}
}