Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap


You are here: irt.org | FOLDOC | method

<programming> In object-oriented programming, a function that can be called on an object of a given class. When a method is called (or invoked) on an object, the object is passed as an implicit argument to the method, usually referred to by the special variable "this". If the method is not defined in the object's class, it is looked for in that class's superclass, and so on up the class hierarchy until it is found. A subclass thus inherits inheritance all the methods of its superclasses.

Different classes may define methods with the same name (i.e. methods may be polymorphic).

Methods are sometimes called "object methods" or "instance methods". "Class methods" are methods that operate on objects of class "class". "Static methods" are not methods but normal functions packaged with the class.


Nearby terms: Met-English « METEOR « meter « method » method invocation » methodology » Methods

FOLDOC, Topics, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, ?, ALL

©2018 Martin Webb