TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Is Object Oriented Programming Too Complicated?

1 点作者 DavidBishop超过 14 年前

2 条评论

timrobinson超过 14 年前
Inheritance isn't the only way to re-use code. Using inheritance won't solve your problems, and it tends to give you new ones: <a href="http://en.wikipedia.org/wiki/Fragile_base_class" rel="nofollow">http://en.wikipedia.org/wiki/Fragile_base_class</a>
评论 #2170912 未加载
arctangent超过 14 年前
I think OOP is easy, so long as the system you are modelling can in fact be broken down sensibly into distinguishable objects. However, a lot of people try to use an OOP approach when this is not appropriate and end up getting into a bit of a mess.