Akkiraju Ivaturi

Akkiraju Ivaturi

  • NA
  • 8.7k
  • 4.2m

What will be displayed, why, and how confident are you?

Sep 7 2012 11:19 PM
using System;

class Foo
{
static Foo()
{
Console.WriteLine ("Foo");
}
}

class Bar
{
static int i = Init();

static int Init()
{
Console.WriteLine("Bar");
return 0;
}
}

class Test
{
static void Main()
{
Foo f = new Foo();
Bar b = new Bar();
}
}



Answers (1)