Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java SE 综合讨论区
» 实战错误讨论
打印话题 寄给朋友 订阅主题 |
作者 | Re:超菜问题,关于类和方法 [Re:truthawp] |
dabing
发贴: 2 积分: 0 |
于 2005-08-05 18:55
在调用父类的构造方法base()时,base()中的add() 方法调用的是子类的add()方法。在中个过程中,Test类的add()方法被调用了两次,执行结果为1*2+2*2+2*8=22 |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
23800 | 超菜问题,关于类和方法 | truthawp | 718 | 2005-08-04 12:26 |
21005 | Re:超菜问题,关于类和方法 | why | 42 | 2005-08-04 13:20 |
21338 | Re:超菜问题,关于类和方法 | truthawp | 205 | 2005-08-04 20:06 |
21012 | Re:超菜问题,关于类和方法 | why | 304 | 2005-08-04 20:24 |
21049 | Re:超菜问题,关于类和方法 | truthawp | 409 | 2005-08-05 20:42 |
20975 | Re:超菜问题,关于类和方法 | meteorping | 20 | 2005-08-06 11:33 |
20944 | Re:超菜问题,关于类和方法 | truthawp | 85 | 2005-08-06 11:54 |
21450 | Re:超菜问题,关于类和方法 | acl2005 | 108 | 2005-08-06 16:00 |
20899 | Re:超菜问题,关于类和方法 | jameszhang | 39 | 2005-08-06 18:03 |
21479 | Re:超菜问题,关于类和方法 | acl2005 | 43 | 2005-08-07 07:14 |
21202 | Re:超菜问题,关于类和方法 | javalean | 1364 | 2005-08-07 16:01 |
20847 | Re:超菜问题,关于类和方法 | truthawp | 193 | 2005-08-08 11:36 |
21191 | Re:超菜问题,关于类和方法 | javalean | 110 | 2005-08-08 12:15 |
20786 | Re:超菜问题,关于类和方法 | truthawp | 16 | 2005-08-08 16:39 |
21303 | Re:超菜问题,关于类和方法 | yqt | 25 | 2005-08-04 15:35 |
20808 | Re:超菜问题,关于类和方法 | why | 164 | 2005-08-08 19:31 |
21371 | Re:超菜问题,关于类和方法 | acl2005 | 25 | 2005-08-08 23:30 |
21180 | Re:超菜问题,关于类和方法 | 飞翔的梦想 | 21 | 2005-08-10 08:55 |
21036 | Re:超宋侍?关于类和方法 | andy04911 | 304 | 2005-08-11 00:50 |
20771 | Re:超宋侍?关于类和方法 | jameszhang | 360 | 2005-08-11 19:14 |
20911 | Re:超宋侍?关于类和方法 | whyuaou | 470 | 2005-08-15 12:43 |
20446 | Re:超菜问题,关于类和方法 | why | 134 | 2005-08-22 07:29 |
21091 | Re:超菜问题,关于类和方法 | ch_zh_80 | 85 | 2005-08-14 10:38 |
20750 | Re:超菜问题,关于类和方法 | truthawp | 106 | 2005-08-14 12:31 |
21121 | Re:超菜问题,关于类和方法 | ch_zh_80 | 59 | 2005-08-15 11:31 |
21164 | Re:超菜问题,关于类和方法 | hxz5830 | 213 | 2005-08-16 15:48 |
20907 | Re:超菜问题,关于类和方法 | whyuaou | 369 | 2005-08-17 15:22 |
21067 | Re:超菜问题,关于类和方法 | zj1290 | 331 | 2005-08-20 13:34 |
21252 | Re:超菜问题,关于类和方法 | truthawp | 34 | 2005-08-04 22:28 |
20955 | Re:超菜问题,关于类和方法 | why | 258 | 2005-08-04 22:57 |
20953 | Re:超菜问题,关于类和方法 | brianlove | 52 | 2005-08-22 01:48 |
21066 | Re:超菜问题,关于类和方法 | zj1290 | 23 | 2005-08-22 10:38 |
21336 | Re:超菜问题,关于类和方法 | zj1290 | 160 | 2005-08-22 15:23 |
21286 | Re:超菜问题,关于类和方法 | truthawp | 17 | 2005-08-04 23:27 |
21471 | Re:超菜问题,关于类和方法 | zhangp_happy | 236 | 2005-08-05 14:50 |
21180 | Re:超菜问题,关于类和方法 | yqt | 133 | 2005-08-05 16:30 |
21446 | Re:超菜问题,关于类和方法 | zhangp_happy | 158 | 2005-08-06 10:04 |
20994 | Re:超菜问题,关于类和方法 | truthawp | 551 | 2005-08-05 18:43 |
21156 | Re:超菜问题,关于类和方法 | dabing | 95 | 2005-08-05 18:55 |
已读帖子 新的帖子 被删除的帖子 |
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 |