locked
What is method signature? RRS feed

  • Question

  • User239643416 posted

    Hi,

    What is method signature?

    Thanks

    Tuesday, December 27, 2011 1:04 AM

Answers

  • User-68639941 posted

    method signature represents the Methods  name, parameters and its order and type

    Refer : http://msdn.microsoft.com/en-us/library/aa691131(v=vs.71).aspx

    http://www.c-sharpcorner.com/uploadfile/puranindia/method-signatures-in-C-Sharp/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 27, 2011 1:06 AM
  • User-448512826 posted

    Hi,

    A method signature is part of the method declaration. It is the combination of the method name and the parameter list.

    The reason for the emphasis on just the method name and parameter list is because of overloading. It's the ability to write methods that have the same name but accept different parameters. The Java compiler is able to discern the difference between the methods through their method signatures.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 27, 2011 4:28 AM
  • User-1673382244 posted

    Hi,

      A mehtod signature incli=ude's everything except return type

      For example

    int MyFunction(ina a, int b);
    here signature means parameters with function name exculeing return type..
    Thanks..
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 27, 2011 4:50 AM

All replies

  • User-68639941 posted

    method signature represents the Methods  name, parameters and its order and type

    Refer : http://msdn.microsoft.com/en-us/library/aa691131(v=vs.71).aspx

    http://www.c-sharpcorner.com/uploadfile/puranindia/method-signatures-in-C-Sharp/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 27, 2011 1:06 AM
  • User-448512826 posted

    Hi,

    A method signature is part of the method declaration. It is the combination of the method name and the parameter list.

    The reason for the emphasis on just the method name and parameter list is because of overloading. It's the ability to write methods that have the same name but accept different parameters. The Java compiler is able to discern the difference between the methods through their method signatures.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 27, 2011 4:28 AM
  • User-1673382244 posted

    Hi,

      A mehtod signature incli=ude's everything except return type

      For example

    int MyFunction(ina a, int b);
    here signature means parameters with function name exculeing return type..
    Thanks..
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 27, 2011 4:50 AM