malaikuangren

What is the purpose or drive to build thing like (xxx),How can it achieve the original goal of design?

2012年5月22日

AOP IS NOT JUST A DECORATOR

摘要: A lot of folks who don’t know enough aboutAOP(Aspect Oriented Programming) feel that they can achieve the same results by using the decorator pattern. While AOP is similar in concept, there is a lot more that AOP can solve that a decorator pattern would be hard pressed to do. The GOF Decorator patte 阅读全文

posted @ 2012-05-22 21:01 malaikuangren 阅读(211) 评论(0) 推荐(0) 编辑
what is the difference between Association, Dependence, Aggregation and Composition

摘要: compare to the association and dependence ,the aggregation and composition relationship of two class is closer。let 's check it out.This short article will put forward my understanding of composition and aggregation and how I would express it in C# code.Composition:As we know, inheritance gives u 阅读全文

posted @ 2012-05-22 17:40 malaikuangren 阅读(432) 评论(0) 推荐(0) 编辑