java_类承继其他类的内部类例子

package ming;

class Outer {
	class In {
		public In(String msg) {
			System.out.println(msg);
		}
	}

}

public class InTest extends Outer.In {

	public InTest(Outer outer) {
		outer.super("hello");
	}

	public static void main(String[] args) {
		Outer out = new Outer();
		InTest intest = new InTest(out);
	}

}


posted @ 2013-08-17 20:36  MrMrCash  阅读(157)  评论(0编辑  收藏  举报