C Sharp (C#) - Inheritance
What will be the output of the following code?
class A {
public virtual void Show() { Console.WriteLine("A Show"); }
}
class B : A {
public override void Show() {
base.Show();
Console.WriteLine("B Show");
}
}
class Program {
static void Main() {
B obj = new B();
obj.Show();
}
}