是采用构造的覆盖批注认为一个好的做法? [英] Is using the Override annotation in constructors considered a good practice?
本文介绍了是采用构造的覆盖批注认为一个好的做法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我读过,使用 @覆盖
标注承载了多少好处,而共识是,你应该使用它在每一个正在被重写方法。
I've read that using the @Override
annotation carries many benefits, and the consensus is that you should use it on every method that is being overridden.
时,它认为一个很好的做法,使用构造的 @覆盖
注释吗?
Is it considered a good practice to use the @Override
annotation in constructors too?
推荐答案
没有。
构造函数没有被重载。
这篇关于是采用构造的覆盖批注认为一个好的做法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文