0

I have a hierarchy with several levels, it looks something like this (<---- denotes subclassing of left from right):

MyClass <----- ParentClass <------ Abstract Class

I want to call a non-static method that is declared and defined in AbstractClass, but is overridden in ParentClass. I want to call the version in AbstractClass, not the version in ParentClass, so I need something like

super.super.method();

Or something of that spirit. Is there a way to do this?

Thanks!

bcr
  • 1,328
  • 11
  • 27

1 Answers1

2

This Stack Overflow thread has a good discussion of this issue. In short, there a couple of hacky ways to do it, but you really shouldn't.

Community
  • 1
  • 1
Peter Roe
  • 446
  • 3
  • 6