This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 我叫唤了半天,也得来点实在的。有种说法,所有的函数应该全定义为虚函数(virtual),
大家讨论下,这种说法究竟对不对?
-objectspace(New File Sys);
2006-3-19
{82}
(#2850837@0)
-
那叫interface.
-canadiantire(轮胎-M.I.N.K.);
2006-3-20
(#2851808@0)
-
哈哈。你这个叫假行家。 答对勉强小半
-objectspace(New File Sys);
2006-3-20
(#2853490@0)
-
没明白楼主到底要说什么?
-binghongcha76(一只大猫);
2006-3-20
(#2852139@0)
-
没看出这个问题实在啊?
-kaia(打不成瞌睡了);
2006-3-20
(#2853437@0)
-
This is a typical interview question.(I like interview question, it help you clear up your mind). In C++, it will be pure virtual class and in Java it should be Interface.Either way it was implemented by dynamic binding, virtual table and the pointer attached to the virtual table
-simonqu(后悔);
2006-3-20
{109}
(#2853588@0)