Method

Applies to: general, python, cpp

A method is a function attached to an object or class. It usually works with the object's internal state.

text = "abc"
text.upper()

See also: function, class, object