SHARE
TWEET

Untitled

a guest Aug 13th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class A {
  2.  
  3.   String value;
  4.  
  5.   A(String value) {
  6.     this.value = value;
  7.   }
  8.  
  9.   class B {
  10.     String getValue(){
  11.       return value;
  12.     }
  13.   }
  14. }
  15.  
  16. class C extends A.B {
  17.  
  18.   public static void main(String[] args) {
  19.     A a = new A("Hallo");
  20.     C c = new C(a);
  21.  
  22.     String value = c.getValue();
  23.     System.out.println(value);
  24.   }
  25.  
  26.   C(A a) {
  27.     a.super();
  28.   }
  29. }
RAW Paste Data
Top