作者:书友80433968_667 | 来源:互联网 | 2023-08-29 19:05
存在5个类,他们的关系如下使用ClassE的对象作为this参数调用ClassC的aMethod方法。在aMethod方法里面,如果访问bMethod方法,那么JVM定位bMethod方法的逻辑如
存在5个类,他们的关系如下

使用ClassE的对象作为this参数调用ClassC的aMethod方法。
在aMethod方法里面,如果访问bMethod方法,那么JVM定位bMethod方法的逻辑如下

在aMethod方法里面,如果访问aAttribute属性,那么JVM定位aAttribute属性的逻辑如下
