Ray's playground

 

Item 33: Make non-leaf classes abstract.(More Effective C++)

The general rule remains: non-leaf classes should be abstract. You may need to bend the rule when working with outside libraries, but in code over which you have control, adherence to it will yield dividends in the form of increased reliability, robustness, comprehensibility, and extensibility throughout your software. 

posted on 2012-03-23 14:25  Ray Z  阅读(317)  评论(0)    收藏  举报

导航