Output for the following code?
namespace IndiabixConsoleApplication
{
class Sample
{
public static void fun1()
{
Console.WriteLine("Bix1 method");
}
public void fun2()
{
fun1();
Console.WriteLine("Bix2 method");
}
public void fun2(int i)
{
Console.WriteLine(i);
fun2();
}
}
class MyProgram
{
static void Main(string[ ] args)
{
Sample s = new Sample();
Sample.fun1();
s.fun2(123);
}
}
}

 Posted by Kmandapalli on 1/15/2014 | Category: C# Interview questions | Views: 3530 | Points: 40
Select from following answers:
  1. Bix1 method , 123, Bixl method, Bix2 method
  2. Bix1 method, 123, Bix2 method
  3. Bix2 method , 123, Bix2 method, Bixl method
  4. Bix2 method, 123, Bixl method
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response