随笔-8  评论-0  文章-0  trackbacks-0
 Single inheritance precludes some useful and correct designs.The problems of multiple inheritance arise from multiple inheritance of implememtion, but in many cases multiple inheritance is used to inhert a number of abstract contracts and perhaps one concrete implementtation.Providing a means to inherit an abstract contract without inheriting an implementation allows the typing benefits of multiple inheritance without the problems of multiple implementation inheritance.The inheritance of an abstract contract is termed interface inhertiance.
posted on 2005-08-25 02:14 hegen 阅读(175) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: