3

Is there an opportunity in Eclipse to see if and when yes which classes overrides a method?

For example:

class A { void sayHello() {}; } class B extens A { } class C extens A { void sayHello() { System.out.println("I am in class C"; } } 

So, when I open class A in the editor and the method sayHello() is highlighted, I want to find out that class C overrides it.

0

1 Answer 1

7

You can use the Quick Type Hierarchy option (shortcut Ctrl+T) to find the types implementing/overriding a method of a class and go into their implementation.

Quick Type Hierarchy screenshot

Find usage details here: Viewing the type hierarchy

Sign up to request clarification or add additional context in comments.

1 Comment

Alternatively, pressing F4 should open type hierarchy, which is kind of similar.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.