Topic: 请问Java的多态和重载有何区别?

  Print this page

1.请问Java的多态和重载有何区别? Copy to clipboard
Posted by: tianningsi
Posted on: 2007-02-10 12:19

请问Java的多态和重载有何区别,似乎很相似的概念?

2.Re:请问Java的多态和重载有何区别? [Re: tianningsi] Copy to clipboard
Posted by: zellux
Posted on: 2007-02-11 00:43

差别应该不小吧

3.Re:请问Java的多态和重载有何区别? [Re: tianningsi] Copy to clipboard
Posted by: ranchgirl
Posted on: 2007-02-11 03:10

Q. What is the basic difference between the concept of method overloading and overriding?

A: They are totally irrelevant except the name similarities in two senses.
sense #1: English words overriding and overloading both have "over" inside
sense #2:overloading methods will have the "same name" but different signature.
overriding methods will have the "same name" and same signature.

Except these above, there is nothing in common between them. Please read some more from the following QAs.

http://bobcat.webappcabaret.net/javachina/faq/02.htm#Overload_Q1

4.Re:请问Java的多态和重载有何区别? [Re: tianningsi] Copy to clipboard
Posted by: tianningsi
Posted on: 2007-02-12 09:06

非常感谢,拜读.


   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