1. Home
  2. Computing & Technology
  3. Delphi Programming

Method

By Zarko Gajic, About.com

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;
Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Getting Started with Delphi
  5. Delphi Programming Glossary
  6. Method - Glossary - Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.