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
  • 9,146
  • 20
  • 70
  • 126
  • 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