Ray's playground

 

2011年2月12日

Item 22: Prefer Defining and Implementing Interfaces to Inheritance(Effective C#)

摘要: Base classes describe and implement common behaviors across relatedconcrete types. Interfaces describe atomic pieces of functionality that unrelatedconcrete types can implement. Both have their place. Classes definethe types you create. Interfaces describe the behavior of those types aspieces of fun 阅读全文

posted @ 2011-02-12 22:33 Ray Z 阅读(156) 评论(0) 推荐(0) 编辑

导航