Method

A method is a function or procedure that belongs to a class and operates or accesses the class data members. In procedural programming, this is called a function.