This class is also from the book Decompiling Java, this time chapter 3:

using System;
public class Usa {
    public String name = "Detroit";
    public class England {
        public String name = "London";
        public class Ireland {
            public String name = "Dublin";
            public void print_names() {
                Console.WriteLine(name);
            }
        }
    }
    public static void Main(String[] args) {}
}
Here, England is an inner class of Usa, and Ireland is an inner class of England. The above is compiled with Mono's mcs for Linux (no options).

-- MikeVanEmmerik - 07 Mar 2003

Revision: r1.1 - 07 Mar 2003 - 03:47 - MikeVanEmmerik
Copyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback