2011年5月30日

摘要: I often hear the question, “Should I design a base type or an interface?” The answer isn’talways clear-cut. Here are some guidelines that might help you:n IS-A vs. CAN-DO relationship A type can inherit only one implementation. If thederived type can’t claim an IS-A relationship with the base type, 阅读全文

posted @ 2011-05-30 14:20 nealgaga 阅读(258) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3