Rajesh Singh
What will be output of following programs?public class Base{public Base(){Console.WriteLine('Base');}public Base(string name){Console.WriteLine('Base:' + name);}}public class Derived : Base{public Derived(){Console.WriteLine('Derived');}public Derived(string s){Console.WriteLine('Derived:' + s);}}class Program{static void Main(string[] args){Derived d = new Derived('rajesh');Console.ReadLine();}}
By Rajesh Singh in C# on Nov 15 2015
  • Rajesh Singh
    Nov, 2015 15

    Ans: BaseDerived: rajesh

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS