Methods is also called overloaded not overriding


所有跟贴·加跟贴·新语丝读书论坛

送交者: HunHunSheng 于 2006-08-09, 10:25:33:

回答: A mistake in "国际期刊的定义与C++语言中的Overriding" 由 steven 于 2006-08-09, 10:10:42:

You define two methods with same name but different
type of input argument. Compiler or interpreter
will know which one is intended by checking
input arguments (unlike polymorphics, overloading
is not done during execution)

I don't think Java allow operator overloading.





所有跟贴:


加跟贴

笔名: 密码: 注册笔名请按这里

标题:

内容: (BBCode使用说明)