Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A {
- String value;
- A(String value) {
- this.value = value;
- }
- class B {
- String getValue(){
- return value;
- }
- }
- }
- class C extends A.B {
- public static void main(String[] args) {
- A a = new A("Hallo");
- C c = new C(a);
- String value = c.getValue();
- System.out.println(value);
- }
- C(A a) {
- a.super();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement