memberfunction
nounUK /ˈmɛmbə ˈfʌŋkʃən/
US /ˈmɛmbər ˈfʌŋkʃən/
A member function is a special action that belongs to a class in computer programming.
The programmer called the member function to make the robot move forward.
RELATED WORDS
OTHER MEANINGS
2. A function defined inside a class that can use the class's data.
Each member function can read the values stored in the object.
3. A routine that is part of an object and is called through that object.
She added a member function to calculate the total price.
4. In object-oriented code, an operation tied to a specific type.
The member function belongs to the Car class and controls the wheels.