+ -
当前位置:首页 → 问答吧 → 三更半夜里,我遇到了深刻的难题.高分求助.

三更半夜里,我遇到了深刻的难题.高分求助.

时间:2011-10-07

来源:互联网

  1. interface ia
  2. {
  3.     public function c($a);
  4. }
  5. interface ib
  6. {
  7.     public function c($a, $b);
  8. }
  9. abstract class a implements ia
  10. {
  11.         function c($a)
  12.         {
  13.                
  14.         }
  15. }
  16. class b extends a implements ib
  17. {
  18. }
复制代码


b类能实现吗?怎么写?

作者: PHP人   发布时间: 2011-10-07

Please note that the sentence "Note: A class cannot implement two interfaces that share function names, since it would cause ambiguity."
_really_ means that it is not possible to do something like yours.

作者: loho   发布时间: 2011-10-07

相关阅读 更多