(Choose 1 answer)
A. NETC#
B. C#.NET
C. C#
D. An run-time exception will be thrown
class A
{ } public void Print()=>Console.Write(".NET");
class B: A
{ public new void Print()=>Console.Write("C#");
}
class Program
{
static void Main(string[] args) {
B obj = new B();
obj.Print();
A obj1 = new B();obj1.Print();
Console.WriteLine();
}
}
The output will be:
w
Finish