should effort go into reuse above maintainability and extensibility?

通过师生对话形式探讨了面向对象编程中复用的重要性及其实现方式,强调了维护性和扩展性对于软件开发同样重要。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Master and Student

 

Master:  Grasshopper tell me what you have learned of the Object-Oriented ways.

Student: Master, I have learned that the promise of the OO way is reuse.

M:  Grasshopper, continue…

S:  Master, through inheritance all good things may be reused and so we will come to drastically cut development time like we swiftly cut bamboo in the wood.

M:  Grasshopper, is more time spend on code before or after development is complete?

S:  The answer is after, Master. We always spend more time maintaining and changing software than initial development.

M:  So Grasshopper, should effort go into reuse above maintainability and extensibility?

S:     Master, I believe that there is truth in this.

M:    I can see that you still have much to learn. I would like for you to go and meditate on inheritance further. As you’ve seen, inheritance has its problems, and there are other ways of achieving reuse. 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值