C Sharp (C#) - Inheritance
Given the classes below, what will be the output?
class A {
public virtual string GetName() => "A";
}
class B : A {
public override string GetName() => "B";
}
class C : B {
public override string GetName() => base.GetName() + "C";
}
var obj = new C();
Console.WriteLine(obj.GetName());