when execution reach line "Foo.X", the system needs to initialize the static members of class Foo, in appearing order: - It starts with Instance (which calls Foo() which print uninitialized X => 0) - Then it sets X = 3 (because that line in bold comes second)
Обсуждают сегодня