1. Computing

Method

By

Definition: Procedure or function (routine) associated with a particular object.

Different classes may define methods with the same name (Car.Drive or Scooter.Drive).

Most methods operate on objects that are instances of a certain class.

A class method is a method (other than a constructor) that operates on classes instead of objects.

A call to a method specifies the object (or, if it is a class method, the class) that the method should operate on.

Examples:
 type
   TCar = Class
     //method procedure
     procedure Drive;
     //method (function)
     function ChangeGear(newGear : integer) ;
   end; 

©2014 About.com. All rights reserved.