返回狼盟编程首页
编程搜索 [狼盟旧档]
论坛统计


请输入搜索关键字:
├─◆ 狼盟首页 > 查看贴子 > 详细信息

楼主

java的基本问题,望大家指教,谢谢


请问java里面的多态和重载有什么差别







小水1999 [ 1 楼 ]
2005-03-16 22:42:00
别人给你说了也没有用,要自己慢慢体会 

一剑封喉 [ 2 楼 ]
2005-03-17 10:30:00
Multiform(多态) include the following two:
1 OverLoad(重载) :  In a class,there are many methods which have the same name.
But the number and order of arguments is different from each other.
2 OverRide (重写):  The subclass(子类) inherits methods of baseclass(主类).And in the same time,subclass constructs the method by a new way.