2

Is something like this possible?

class A {

            this someMethod() {
                // code
                return this;
            }

        }


        class B extends A {

        }


        B b = new B();

        B b2 = b.someMethod();

This in the most simple way possible.

clankill3r
  • 8,471
  • 17
  • 67
  • 115
  • why you want this? if you want to have derived class from b, maybe b should holds instance of original A and delegate methods – user902383 Jun 05 '15 at 15:57

0 Answers0