l*********s 发帖数: 5409 | 1 So said "Effective C++", but in Java all member functions are
virtual, how it is OK? | b******e 发帖数: 1861 | 2 It's also not preferred to do this way in java. If you use PMD/findbug,
this is a warning. You should only call final method or define the class
as final to avoid call overridable method in constructor. | l*********s 发帖数: 5409 | 3
I see, thank you very much.
【在 b******e 的大作中提到】 : It's also not preferred to do this way in java. If you use PMD/findbug, : this is a warning. You should only call final method or define the class : as final to avoid call overridable method in constructor.
|
|