My question is extremely easy when you implement a class. (because Eclipse and IDEA can generate for us).
But, I don't know how to do the same when you extends a class. (Of course this work is not must, but I want to be sure what to do in my code, so this option will be helpful).
thanks :)
对于Eclipse,进入Source菜单( Alt+Shift+s
) - > Override / Implement Methods ...这会给你一个可以@overriden的所有方法的列表。
在IntelliJ中: CTRL o显示要覆盖/实现的方法列表
在IntelliJ中: Alt Insert生成各种代码,包括重写方法,实现方法,构造函数,getter,setter,delegators等。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.