由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Don't call virtual functions in constructor/destructor
相关主题
为什么java没有destructor请教1个工作面试题
how to implement destructor in java?为什么C++的constructor出错可以抛出异常,而destructor出错
C++ online Test 一题One C++ question
请教个Bloomberg 的 C++ 题目面经: bloomberg 电面
新Qualcomm面经C++ Q65: recompiling (IB)
包子呼唤大牛--问关于C++Destructor的问题 (转载)C++相关的面经
问个C++重新编译的问题小公司web server面经
C++面试问题,高人请进啊~~~c++ class default functions?
相关话题的讨论汇总
话题: don话题: functions话题: virtual话题: destructor
进入Java版参与讨论
1 (共1页)
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.

1 (共1页)
进入Java版参与讨论
相关主题
c++ class default functions?新Qualcomm面经
准备去BB onsite 了,求bless (undate)包子呼唤大牛--问关于C++Destructor的问题 (转载)
说说我被面试到的c++题目吧问个C++重新编译的问题
BB phone interview questionC++面试问题,高人请进啊~~~
为什么java没有destructor请教1个工作面试题
how to implement destructor in java?为什么C++的constructor出错可以抛出异常,而destructor出错
C++ online Test 一题One C++ question
请教个Bloomberg 的 C++ 题目面经: bloomberg 电面
相关话题的讨论汇总
话题: don话题: functions话题: virtual话题: destructor