What is a method’s signature?

Method signature is the set of attributes of a method that a compiler can use to identify the method . The attrbutes are: Method name, number of parameters, parameter type and order of parameters. Example of diferent method signatures: Foo() Foo(int) Foo(String) Foo(int, string) Foo(string, int)

Sizin İçin Seçtik  How do you call an object from another class in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *