Home / MCQ Bank / Computer
Computer Classes And Objects In C Sharp Difficulty: Medium

What will be the output of the following C# code? class a { public void fun() { Console.WriteLine("base method"); } } class b: a { public new void fun() { Console.WriteLine(" derived method "); } } class Program { static void Main(string[] args) { b k = new b(); k.fun(); Console.ReadLine(); } }

Select the correct option to test your answer:

More Computer Questions

Which shortkey is suitable for reach at the last Row of MS Excel? In Ruby, what does it mean to "freeze" an object? A good identifier is which of the following? Which are the forms of client-side storage? What is multithreading in C#?