search

Home  >  Q&A  >  body text

java - For polymorphic calling of subclass object methods, can IDEA enter the actual calling method through CTRL + left mouse button?

people p = new student();
p.speak();

student rewrote the speak method

Ctrl left click can only enter the method of the parent class. There is no open implementation/declar of MyEclipse

Do I need to set it up

Or only debug can enter the real method?

怪我咯怪我咯2725 days ago995

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-06-12 09:28:45

    To the right of the line number to the left of your parent class method, there will be a small downward arrow. The icon may be O (Override) or I (Implement). Click to search for all implementations/overridden methods of this interface/parent class method, and the same upward direction The arrow searches for the method’s parent class/interface

    reply
    0
  • Cancelreply