You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
p/1115
桥接方法
子类重写的方法的返回值可以是父类方法的返回值的子类。
本质
编译器帮忙生成了合成的桥接方法。
内部有一个重写父类相同返回值的方法,以及子类重写的返回值
https://zhangbj.com/p/1115.html
Beta Was this translation helpful? Give feedback.
All reactions