Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Design Pattern & UML  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:领悟OOP需要多长时间? [Re:zcjl]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2006-06-04 14:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
zcjl wrote:
我倒不认为面向对象会比面向过程更节省代码(代码复用不仅仅只适合OOP),相反,从代码量来计算,很多时候OOP会比面向过程的方式更加冗长,但是没关系,代码冗长并不就意味着可读性和可维护性降低,因为好的OOP可以实现更好的封装,更符合现实生活的思维习惯。


其实 OO 从来没追求过代码行,他 要达到的 是 可扩展性和可复用性的目的,但如果 可复用性 的提高 ,就可以节省代码,哈哈 ,

因为好的OOP可以实现更好的封装


有点逻辑问题, 封装 是 oo 的 特征之一 ,是 OO的 四个基本原理之一,怎么说 OO 实现 的 封装 ,应该是 程序通过 封装 实现 OO编程 ,呵呵



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"


话题树型展开
人气 标题 作者 字数 发贴时间
41613 领悟OOP需要多长时间? cxp108 69 2006-03-31 09:05
31639 Re:领悟OOP需要多长时间? floater 550 2006-04-01 13:10
30203 Re:领悟OOP需要多长时间? cxp108 531 2006-04-01 14:08
31717 Re:领悟OOP需要多长时间? zcjl 191 2006-04-01 16:03
29636 Re:领悟OOP需要多长时间? jameszhang 349 2006-06-04 14:55
23500 Re:领悟OOP需要多长时间? istimeto 266 2008-06-17 00:31
31869 Re:领悟OOP需要多长时间? idol 8 2006-04-11 11:48
31492 Re:领悟OOP需要多长时间? kenwudi 112 2006-06-06 08:54
31926 Re:领悟OOP需要多长时间? gaoxt1983 66 2006-06-06 14:58
31193 Re:领悟OOP需要多长时间? floater 13 2006-06-06 21:31
32502 Re:领悟OOP需要多长时间? why 56 2006-06-07 01:19
32625 Re:领悟OOP需要多长时间? jameszhang 71 2006-06-08 20:11
20932 Re:领悟OOP需要多长时间? istimeto 80 2008-06-17 00:26
33446 Re:领悟OOP需要多长时间? ftang 55 2006-06-23 23:13

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923