Which of the following is true about the following code? using System;using System.Collections.Generic;class A { public void Demo() { Console.WriteLine(The Demo in base class); } } class B : A { public new void Demo() { Console.WriteLine(The Demo in child class); } } class test { static void Main(string[] args) { A b = new B(); b.Demo(); } }
Reveal answer
Fill a bubble to check yourself