期刊文献+

面向对象设计中委托和继承机制的探讨

Study on Delegation and Inheritance Mechanisms in Object-oriented Design
下载PDF
导出
摘要 委托和继承机制是面向对象设计中 2种最常用的复用手段 ,但是由于某些设计师没有完全弄清楚它们之间的关系和各自的应用场合 ,导致在软件界经常可以看到它们被滥用于设计中。为了纠正这种错误 ,先从它们的基本概念入手 ,详细地比较了它们之间的区别及各自的应用场合 ,然后用一个实例说明了它们在设计中的用法及注意事项。 Delegation and inheritance are two effective reuse mechanisms in Object-oriented software development. However, some defective software designs, which abuse them, can often be seen as the designers can not fully understand the differences between their relationship and their applicable scenarios. To improve this situation, the article firstly introduced their definitions, differences and summed up their applied areas and then illustrated an example for their usages and notices in program’s design.
出处 《武汉理工大学学报》 CAS CSCD 2004年第8期77-79,89,共4页 Journal of Wuhan University of Technology
关键词 委托 继承 设计模式 delegation inheritance design pattern
  • 相关文献

参考文献6

  • 1ErichGamma RichardHelm RalphJohnson 李英军译.设计模式:可复用面向对象软件的基础[M].北京:机械工业出版社,2000..
  • 2BruceEckel 侯捷译.Java编程思想[M]·第2版[M].北京:机械工业出版社,2002..
  • 3侯俊杰.深入浅出MFC[M]·第2版[M].武汉:华中理工大学出版社,1998..
  • 4Cooper James W. The Design Patterns Java Companion[M]. Boston:Addison-wesley Press, 1998.
  • 5Grand Mark. Patterns in Java (Volume 1)[M]. New York:Wiley Computer Publishing, 1998.
  • 6Stephen Stelting, Olan Maassen. Applied Java Patterns[M]. New Jersey:Prentice Hall, 2002.

共引文献45

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部