methodpointer

noun
UK /ˈmɛθədˌpɔɪntə/
US /ˈmɛθədˌpɔɪntər/

A method pointer is a special tag that tells a computer which set of steps to follow.

The program used a method pointer to call the right function when the button was clicked.


OTHER MEANINGS

2. In object-oriented programming, a reference that points to a specific method of a class or object.

The event handler stored a method pointer to the object's update routine.

3. A variable that holds the memory address of a function or subroutine so it can be called later.

She passed a method pointer to the sorting routine to customize the comparison.

4. A way to let one part of a program choose which action to run without knowing its name in advance.

Using a method pointer, the menu could run different commands for each option.