What will be the output of 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 override void Demo() { Console.WriteLine(The Demo in child class); } } class test { static void Main(string[] args) { B b = new B(); b.Demo(); } }
Reveal answer
Fill a bubble to check yourself