1
Reply

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

Akkiraju Ivaturi

Akkiraju Ivaturi

Sep 7 2012 11:19 PM
925
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)
Next Recommended Forum