为什么方法返回值不算作方法签名?这样设计的原因是什么?不知道原因,我永远都记不住啊……
附:
1、方法签名定义
Definition: Two of the components of a method declaration comprise the method signature—the method's name and the parameter types.
The signature of the method declared above is:
2、方法签名例子
calculateAnswer(double, int, double, double)
http://docs.oracle.com/javase/tutorial/java/javaOO/methods.html
撒科打诨
相关分类