What will be output of following program?
public class Base
{
public Base()
{
Console.WriteLine("Base");
}



}

public class Derived : Base
{
public Derived()
{
Console.WriteLine("Derived");
}


}

Public Class Main
{
static void Main(string[] args)
{
Derived obj=new Derived()

}
}

 Posted by Rajeshatkiit on 12/16/2015 | Category: C# Interview questions | Views: 790 | Points: 40
Select from following answers:
  1. Base,Base
  2. Base,Derived
  3. Derived,Base
  4. All of the above
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response