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