Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Quiz Sharp 24

using System;

class Bar
{
  static int i = 0;

  class Foo
  {
    public Foo()
    {
      i++;
    }
    static Foo()
    {
      i--;
    }
  }

  static void Main()
  {
    Foo f1 = new Foo();
    Foo f2 = new Foo();
    Console.WriteLine(i);
    Console.Read();
  }
}

Cosa viene visualizzato a console?

  • A. 0
  • B. 1
  • C. 2

Print | posted on giovedì 10 giugno 2004 03:10 | Filed Under [ Quiz Sharp ]

Powered by:
Powered By Subtext Powered By ASP.NET