(Choose 1 answer)
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:
A. C#.NET