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
CategoryDecompilation

Revision: r1.2 - 11 Mar 2003 - 02:49 - 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