摘要:
CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace VirtualDemo{ class A ... 阅读全文
posted @ 2008-12-11 23:17
chunchill
阅读(251)
评论(0)
推荐(0)
摘要:
CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;namespace DelegateDemo{ class C... 阅读全文
posted @ 2008-12-11 22:26
chunchill
阅读(201)
评论(0)
推荐(0)
摘要:
1、对修改关闭,对扩展开放。 2、依赖于接口和抽象类就可以不怕更改。 3、只有当子类可以替换掉父类,软件的功能单位不受影响时,父类才能真正被复用。而子类也能在父类的基础上添加新的行为。 4、简单工厂模式与工厂方法模式的区别。 5、既然是继承,并且肯定这个继承有意义,就应该成为子类的模板,所有重复的代码都应该上升到父类中去,不要让子类去做重复的事情。 6、类之间的耦合越弱越有利于被复用,一个处在弱耦... 阅读全文
posted @ 2008-12-11 13:45
chunchill
阅读(811)
评论(0)
推荐(0)


浙公网安备 33010602011771号