19 lines
424 B
Java
19 lines
424 B
Java
//: innerclasses/InheritInner.java
|
|
// ©2015 MindView LLC: see Copyright.txt
|
|
// Inheriting an inner class.
|
|
|
|
class WithInner {
|
|
class Inner {}
|
|
}
|
|
|
|
public class InheritInner extends WithInner.Inner {
|
|
//! InheritInner() {} // Won't compile
|
|
InheritInner(WithInner wi) {
|
|
wi.super();
|
|
}
|
|
public static void main(String[] args) {
|
|
WithInner wi = new WithInner();
|
|
InheritInner ii = new InheritInner(wi);
|
|
}
|
|
} ///:~
|