Overloading a method is what you have already learned: providing more than one method with the same name but with different signatures to distinguish them. 这里这个signature是什么意思??

解决方案 »

  1.   

    Overloading Methods
    Each method has a signature, which is its name and the number and types of its parameters. Two methods can have the same name if they have different numbers or types of parameters and thus different signatures. This feature is called overloading because the simple name of the method has an overloaded (more than one) meaning. When you invoke a method, the compiler uses the number and types of arguments to find the best match from the available overloads. 自己看书吧.
    The Java Programming Language 
    其实看完书你就没有这么多问题了,自己都能解决的东西.
      

  2.   

    不知道 LZ 是不是见到过  Method Signature  这个概念。
    一般不用在基本概念上 “问到底”,理解怎么用就行了,特别是计算机。
      

  3.   

    ...你自己引用的那句話都說以signature來區分了,用來區分的東西相同,那還怎麼區分呀..