The compiler only needs to know what arguments the method requires. For the compiler, it doesn't matter what you call them.
The compiler must know the types of arguments for several reasons:
- Determine which method to use if there are multiple methods with the same method name.
- Determine if input parameters are valid.
- Determine if parameters should be executed
- Decide how to generate the CODE to call the method and process the response
However, I suggest using the first version of the header. This helps other developers (and you yourself) use the functions and know which parameters matter.
source share