Skip to main content
added 14 characters in body
Source Link
tshepang
  • 12.5k
  • 25
  • 98
  • 140

I am not an expert. What, but this is what I know are:

  1. Function is C language term, it refers to a piece of code and the function name will be the identifier to use this function.

    Function is C language term, it refers to a piece of code and the function name will be the identifier to use this function.

  2. Method is the OO term, typically it has a this pointer in the function parameter. You can not invoke this piece of code like C, you need to use object to invoke it.

    Method is the OO term, typically it has a this pointer in the function parameter. You can not invoke this piece of code like C, you need to use object to invoke it.

  3. The invoke methods are also different. Here invoke meaning to find the address of this piece of code. C/C++, the linking time will use the function symbol to locate.

    The invoke methods are also different. Here invoke meaning to find the address of this piece of code. C/C++, the linking time will use the function symbol to locate.

  4. Objecive-C is different. Invoke meaning a C function to use data structure to find the address. It means everything is known at run time.

    Objecive-C is different. Invoke meaning a C function to use data structure to find the address. It means everything is known at run time.

I am not an expert. What I know are:

  1. Function is C language term, it refers to a piece of code and the function name will be the identifier to use this function.
  2. Method is the OO term, typically it has a this pointer in the function parameter. You can not invoke this piece of code like C, you need to use object to invoke it.
  3. The invoke methods are also different. Here invoke meaning to find the address of this piece of code. C/C++, the linking time will use the function symbol to locate.
  4. Objecive-C is different. Invoke meaning a C function to use data structure to find the address. It means everything is known at run time.

I am not an expert, but this is what I know:

  1. Function is C language term, it refers to a piece of code and the function name will be the identifier to use this function.

  2. Method is the OO term, typically it has a this pointer in the function parameter. You can not invoke this piece of code like C, you need to use object to invoke it.

  3. The invoke methods are also different. Here invoke meaning to find the address of this piece of code. C/C++, the linking time will use the function symbol to locate.

  4. Objecive-C is different. Invoke meaning a C function to use data structure to find the address. It means everything is known at run time.

Source Link

I am not an expert. What I know are:

  1. Function is C language term, it refers to a piece of code and the function name will be the identifier to use this function.
  2. Method is the OO term, typically it has a this pointer in the function parameter. You can not invoke this piece of code like C, you need to use object to invoke it.
  3. The invoke methods are also different. Here invoke meaning to find the address of this piece of code. C/C++, the linking time will use the function symbol to locate.
  4. Objecive-C is different. Invoke meaning a C function to use data structure to find the address. It means everything is known at run time.