Method signature
In computer programming, especially object-oriented programming, a method is commonly identified by its unique method signature. This usually includes the method name, the number and type of its parameters, and its return type.
In the Objective-C programming language, method signatures for an object are declared in the interface header file. For example,
- (id) init_with_int: (int) value;
defines a method init_with_int that returns a general object (an id) and takes one integer argument.
|