设为首页】 【加入收藏】 【网站地图】 【商品折扣
娱乐一生 娱乐明星
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
首页  |  java  |  .NET  |  C/C++  |  网页技术  |  php  |  asp  |  delphi  |  VC  |  VB开发  |  游戏开发  |  软件工程  |  Power Builder  |  Linux开发  |  Windows开发技巧
当前位置:首页 >> 网络编程 >> 【合集】What’s difference between an a tract cl...

【合集】What’s difference between an a tract cl... -

,
☆──────────────────────────────────────☆
net q (水瓶座) 于 2002年07月09日21:45:14 星期二 提到:
What"s difference between an a trct cla  and an interface?
Both methods are a tract.
☆──────────────────────────────────────☆
boo (二当家~将e进行到底) 于 2002年07月09日22:08:40 星期二 提到:
More than one interface can be implemented by one cla , while
only one a tract cla  can be extended by one cla .
☆──────────────────────────────────────☆
lejun (Lejun) 于 2002年07月09日22:14:30 星期二 提到:
what"s more, a tract cla es can have non-a tract methods, which mea  the
po ibility of default behavior.
提到: 】: More than one interface can be implemented by one cla , while
☆──────────────────────────────────────☆
boo (二当家~将e进行到底) 于 2002年07月09日22:25:16 星期二 提到:
right
☆──────────────────────────────────────☆
net q (水瓶座) 于 2002年07月09日22:42:08 星期二 提到:
and i think A tract cla  can have no Data member while Interface can?
☆──────────────────────────────────────☆
XML (爱是我们的优势策略 *_^) 于 2002年07月09日23:18:59 星期二 提到:
a childCla  "is" its father a tract cla  while it "like" the interface it i
mplemented.
☆──────────────────────────────────────☆
net q (水瓶座) 于 2002年07月10日00:20:02 星期三 提到:
I find it interesting that if i define an a tract cla  and a subCla  tha
t i have to implemetn all its" a tract function, but if i defiene another c
la  that is the subCla "s subCla (Sorry for the ambigious statment) i don
"t have to implement all the function.
seems it doe t see the very original a tract as its parent cla  but only
the subcla 
☆──────────────────────────────────────☆
XML (爱是我们的优势策略 *_^) 于 2002年07月10日00:38:39 星期三 提到:
of coz, for u have implemented all the a tract methods in the second cla .
&am , in the third cla , u actually "override" i tead of "implement" some of
these methods.
☆──────────────────────────────────────☆
lejun (Lejun) 于 2002年07月10日08:55:31 星期三 提到:
Yes, this is what the a tract cla  trying to do.
That mea  "in order to make me work, you must do ...", while the normal
cla  mea  "I can work, do as you wish"
btw: if you don"t like anyone to modify the action of some method, it is
keyword "final" that would be useful.
☆──────────────────────────────────────☆
net q (水瓶座) 于 2002年07月10日11:57:17 星期三 提到:
Thank you all.
What I was actually confused is that the third cla  ignore the first cla (
because it is not required no to implement all the a tract methods). But it
"s a subCla  of the firs in my option.
So does it mean the third cla  only take the second cla  as its parent?




 

娱乐图摘

更多 >>

靓丽清纯美女meimei

美女私房全裸照
导演劝女演员脱衣服(视频)

大胆火辣人体艺术写真(图)

黑丝妹妹热辣诱惑-丝袜美女妹妹

PLMM 漂亮妹妹图集-妹妹图库

全球美女图库-美女集中营

52MM 我爱漂亮妹妹-制服妹妹诱惑

图王图库-世界美女明星图片资料库
美女写真集锦

激情两性-解密性生活
浴室MM湿身内衣诱惑
邻家小妹洗澡被偷拍(视频)

热点文章

更多

· 请问一个jni本地代码调试问题(linux+gdb+jdb)
· SAML简介:安全地共享数字身份信息
· Together ControlCenter 6.0 入门实
· 非Sun的java RMI设计与实现(转载)
· 【合集】有没必要花太大精力到awt,swing?
· 【合集】JBulider6安装问题
· Cisco校园软件作品创作大赛(转载)
· 【合集】怎样实现这样一个ComboBox?
· Sun公司Forte for Java IDE获奖
· 使用JDBC连接MYSQL数据库

热点文章

更多