Definition of a method signature?

前端 未结 7 1940
萌比男神i
萌比男神i 2020-12-08 10:32

What is the correct definition of a method signature (or a signature of a method)?

On google, I find various definitions:

It is the combinatio

7条回答
  •  半阙折子戏
    2020-12-08 11:24

    The method signature includes following items:

    • The name of the method.
    • The number of parameters.
    • The data types and order of the parameters.

    Note: The return type is not part of the signature.

提交回复
热议问题